mirror of
https://github.com/janeczku/calibre-web
synced 2025-11-21 01:14:49 +00:00
Removed use of tornado
This commit is contained in:
4
cps.py
4
cps.py
@@ -17,9 +17,7 @@ if __name__ == '__main__':
|
|||||||
if web.ub.DEVELOPMENT:
|
if web.ub.DEVELOPMENT:
|
||||||
web.app.run(host="0.0.0.0", port=web.ub.config.config_port, debug=True)
|
web.app.run(host="0.0.0.0", port=web.ub.config.config_port, debug=True)
|
||||||
else:
|
else:
|
||||||
http_server = HTTPServer(WSGIContainer(web.app))
|
web.app.run(host="0.0.0.0", port=web.ub.config.config_port)
|
||||||
http_server.listen(web.ub.config.config_port)
|
|
||||||
IOLoop.instance().start()
|
|
||||||
|
|
||||||
if web.helper.global_task == 0:
|
if web.helper.global_task == 0:
|
||||||
web.app.logger.info("Performing restart of Calibre-web")
|
web.app.logger.info("Performing restart of Calibre-web")
|
||||||
|
|||||||
Reference in New Issue
Block a user