removed multiple workers as they do not work well with flask
This commit is contained in:
@@ -38,4 +38,4 @@ COPY --from=css-builder /build/static/css/output.css ./app/static/css/output.css
|
||||
EXPOSE 5000
|
||||
|
||||
# Gunicorn command
|
||||
CMD ["gunicorn", "-w", "4", "--worker-class", "eventlet", "-b", "0.0.0.0:5000", "app.wsgi:app"]
|
||||
CMD ["gunicorn", "-w", "1", "--worker-class", "eventlet", "-b", "0.0.0.0:5000", "app.wsgi:app"]
|
||||
|
||||
@@ -11,7 +11,7 @@ from app.auth import init_auth
|
||||
from app.seed_db import seed_courses
|
||||
from app.config import Config
|
||||
|
||||
socketio = SocketIO(async_mode='eventlet', cors_allowed_origins="*", message_queue='redis://redis:6379')
|
||||
socketio = SocketIO(async_mode='eventlet', cors_allowed_origins="*")
|
||||
|
||||
def create_app(config_class=Config):
|
||||
# 1. Setup Log Directory
|
||||
|
||||
Reference in New Issue
Block a user