Skip to content

Commit

Permalink
fix: django-debug-toolbar require 2 gunicorn workers
Browse files Browse the repository at this point in the history
  • Loading branch information
jdelasoie committed Aug 15, 2024
1 parent 1a3007d commit 84932e0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docker-compose-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ services:
- DATABASE_URL=${DATABASE_URL}
- DJANGO_ENV=dev
- PGPASSWORD=${POSTGRES_PASSWORD}
command: gunicorn --max-requests 1 --reload -w 1 -b :${DEV_PORT} --chdir /usr/src/app/infoscience_exports wsgi:application
# set at least 2 workers, for django-debug-toolbar
command: gunicorn --max-requests 1 --reload -w 2 -b :${DEV_PORT} --chdir /usr/src/app/infoscience_exports wsgi:application

nginx:
build: ./nginx
Expand Down

0 comments on commit 84932e0

Please sign in to comment.