1
0
mirror of https://github.com/janeczku/calibre-web.git synced 2024-11-30 09:07:17 +02:00

Removed use of tornado

This commit is contained in:
Jack 2017-03-06 23:20:37 +00:00
parent a1cb349fda
commit dda11c25b0

4
cps.py
View File

@ -17,9 +17,7 @@ if __name__ == '__main__':
if web.ub.DEVELOPMENT:
web.app.run(host="0.0.0.0", port=web.ub.config.config_port, debug=True)
else:
http_server = HTTPServer(WSGIContainer(web.app))
http_server.listen(web.ub.config.config_port)
IOLoop.instance().start()
web.app.run(host="0.0.0.0", port=web.ub.config.config_port)
if web.helper.global_task == 0:
web.app.logger.info("Performing restart of Calibre-web")