Skip to content

Commit d832143

Browse files
committed
Using gunicorn
1 parent 837d218 commit d832143

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

epiready-backend/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ COPY . .
1818
EXPOSE 5000
1919

2020
# Run the application using Gunicorn with eventlet worker for WebSocket support
21-
CMD ["gunicorn", "-k", "eventlet", "-b", "0.0.0.0:5000", "app:app"]
21+
CMD ["gunicorn", "-k", "--worker-class", "eventlet", "-w", "1", "-b", "0.0.0.0:5000", "app:app", "--log-level", "debug", "--error-logfile", "-"]

epiready-backend/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,4 @@ def add_security_headers(response):
5959
return response
6060

6161
if __name__ == '__main__' and os.getenv("FLASK_ENV") == "development":
62-
socketio.run(app, host='0.0.0.0', port=5000, debug=True)
62+
socketio.run(app, debug=True)

0 commit comments

Comments
 (0)