Skip to content

Commit

Permalink
fix deploy, removed gevent
Browse files Browse the repository at this point in the history
  • Loading branch information
16BitNarwhal committed Sep 4, 2024
1 parent 5c2cde2 commit 050289e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions api-server/Dockerfile.prod
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ WORKDIR /app/server
# install packages
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
RUN pip install gunicorn==23.0.0 gevent==24.2.1 gevent-websocket==0.10.1
RUN pip install gunicorn==23.0.0

COPY . .

CMD ["gunicorn", "-k", "geventwebsocket.gunicorn.workers.GeventWebSocketWorker", "-w", "1", "--threads", "100", "-b", "0.0.0.0:8080", "app:app"]
CMD ["gunicorn", "--worker-class", "eventlet", "-w", "1", "-b", "0.0.0.0:8080", "app:app"]
2 changes: 0 additions & 2 deletions api-server/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,5 @@ def handle_disconnect():
if __name__ == '__main__':
if os.getenv('TESTING', True):
socketio.run(app, debug=True, allow_unsafe_werkzeug=True)
elif os.getenv('PRODUCTION', True):
socketio.run(app, async_mode='gevent')
else:
socketio.run(app, debug=True)

0 comments on commit 050289e

Please sign in to comment.