1
0
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:
echel0n 2014-06-15 15:07:27 -07:00
parent 23e2a483b5
commit 4676c2b7b1
2 changed files with 9 additions and 8 deletions

View File

@ -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()

View File

@ -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'
) )