mirror of
https://github.com/moparisthebest/SickRage
synced 2024-11-17 06:45:05 -05:00
Testing update/restart fix
This commit is contained in:
parent
23e2a483b5
commit
4676c2b7b1
@ -1293,14 +1293,14 @@ def saveAll():
|
|||||||
save_config()
|
save_config()
|
||||||
|
|
||||||
def saveAndShutdown(restart=False):
|
def saveAndShutdown(restart=False):
|
||||||
|
if not restart:
|
||||||
logger.log('Shutting down tornado')
|
logger.log('Shutting down tornado')
|
||||||
try:
|
try:
|
||||||
IOLoop.current().stop()
|
IOLoop.current().stop()
|
||||||
except RuntimeError:
|
except RuntimeError:
|
||||||
pass
|
pass
|
||||||
except:
|
except:
|
||||||
logger.log('Failed shutting down the server: %s' % traceback.format_exc(), logger.ERROR)
|
logger.log('Failed shutting down the server: %s' % traceback.format_exc(), logger.ERROR)
|
||||||
|
|
||||||
halt()
|
halt()
|
||||||
saveAll()
|
saveAll()
|
||||||
|
@ -95,6 +95,7 @@ def initWebServer(options={}):
|
|||||||
app = Application([],
|
app = Application([],
|
||||||
debug=False,
|
debug=False,
|
||||||
gzip=True,
|
gzip=True,
|
||||||
|
autoreload=True,
|
||||||
cookie_secret='61oETzKXQAGaYdkL5gEmGeJJFuYh7EQnp2XdTP1o/Vo=',
|
cookie_secret='61oETzKXQAGaYdkL5gEmGeJJFuYh7EQnp2XdTP1o/Vo=',
|
||||||
login_url='/login'
|
login_url='/login'
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user