diff --git a/core.py b/core.py index e2ebd0a..b39ee73 100644 --- a/core.py +++ b/core.py @@ -1,4 +1,5 @@ from server import create_app +from gevent.wsgi import WSGIServer # Change the host and port here HOST = '0.0.0.0' @@ -12,6 +13,7 @@ if __name__ == '__main__': #app.run(**kwargs) + from gevent import monkey monkey.patch_socket() server = WSGIServer((HOST, PORT), app) server.serve_forever()