Skip to content

Commit

Permalink
feat: Improve Gunicorn timeout, workers and threads
Browse files Browse the repository at this point in the history
  • Loading branch information
drorganvidez committed Jul 21, 2023
1 parent 61be771 commit cfbf53d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile.prod
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ COPY migrations/ ./migrations
EXPOSE 5000

# Run the database migrations and then start the application with Gunicorn
CMD flask db upgrade && gunicorn --bind 0.0.0.0:5000 app:app --log-level debug
CMD flask db upgrade && gunicorn --bind 0.0.0.0:5000 app:app --log-level debug --timeout 300 --workers 4 --threads 2

0 comments on commit cfbf53d

Please sign in to comment.