Skip to content

Commit 69ff89e

Browse files
committed
run socketio server with eventlet instead of gunicorn server
1 parent d93c98f commit 69ff89e

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

quantum_app_backend/dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ EXPOSE 3001
3131
ENV FLASK_APP=app.py
3232

3333
# Run the Flask app
34-
CMD ["gunicorn","--config", "gunicorn_config.py", "app:app"]
34+
CMD ["python3", "app.py"]
Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import os
22

3-
4-
53
workers = int(os.environ.get('GUNICORN_PROCESSES', '2'))
64

75
threads = int(os.environ.get('GUNICORN_THREADS', '4'))
@@ -10,8 +8,6 @@
108

119
bind = os.environ.get('GUNICORN_BIND', '0.0.0.0:3001')
1210

13-
14-
1511
forwarded_allow_ips = '*'
1612

1713
secure_scheme_headers = { 'X-Forwarded-Proto': 'https' }

quantum_app_backend/requirements.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,6 @@ matplotlib
2727
flask-pymongo
2828
dotenv
2929
flask-socketio
30-
gunicorn==23.0.0
30+
gunicorn==23.0.0
31+
eventlet==0.39.1
32+
greenlet==3.1.1

0 commit comments

Comments
 (0)