(r'^/update/?$', handlers.UpdateHandler),
(r'^.*$', handlers.NotFoundHandler),
],
- debug=not settings.ENABLE_REBOOT, # enables autoreload when reboot is disabled
+ debug=False,
log_function=log_request,
static_path=settings.STATIC_PATH,
static_url_prefix=settings.STATIC_URL
IOLoop.instance().add_timeout(datetime.timedelta(seconds=2), call_reboot)
+ else:
+ from tornado import autoreload
+
+ # this will reload the interpreter
+ logging.info('reloading python interpreter...')
+ autoreload._reload()
+
return True
except Exception as e: