Skip to content

Commit

Permalink
+gunicorn configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
friedelwolff committed Jun 21, 2024
1 parent b96ccf7 commit 4729e27
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions app/gunicorn.conf.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Send output from the web app to the error log:
capture_output = True
errorlog = "-"

keepalive = 30
max_requests = 1000000
max_requests_jitter = 1000
graceful_timeout = 5
preload_app = True

workers = 4
threads = 3
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ python manage.py migrate --no-input
python manage.py collectstatic --no-input
python manage.py compilemessages

gunicorn app.wsgi:application --bind 0.0.0.0:8000
gunicorn app.wsgi:application --bind 0.0.0.0:8000 --config gunicorn.conf.py

0 comments on commit 4729e27

Please sign in to comment.