gevent concurrency / asynchronous processes
usage of gunicorn (documented)
This commit is contained in:
7
app.py
7
app.py
@@ -1,6 +1,11 @@
|
||||
from eveai_app import create_app
|
||||
from gevent.pywsgi import WSGIServer
|
||||
|
||||
app = create_app()
|
||||
print(__name__)
|
||||
|
||||
if __name__ == '__main__':
|
||||
app.run()
|
||||
print("Server starting on port 5000")
|
||||
http_server = WSGIServer(('0.0.0.0', 5000), app) # Wrap up the Flask App using Gevent
|
||||
http_server.serve_forever() # Continuously listens for incoming requests
|
||||
|
||||
|
||||
Reference in New Issue
Block a user