We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d7f8a0 commit 60e377cCopy full SHA for 60e377c
entrypoint.prod.sh
@@ -1,3 +1,11 @@
1
+#!/bin/sh
2
+
3
+export DJANGO_READ_DOT_ENV_FILE=True
4
+export DJANGO_SETTINGS_MODULE=config.settings.production
5
6
python manage.py collectstatic --noinput
7
python manage.py migrate --noinput
-python -m gunicorn --bind 0.0.0.0:8000 --workers 4 config.asgi:application
8
+python -m gunicorn config.asgi:application \
9
+ --bind 0.0.0.0:8000 \
10
+ --workers 4 \
11
+ -k uvicorn.workers.UvicornWorker
0 commit comments