Skip to content

Commit 60e377c

Browse files
committed
Specify which settings to use to django
1 parent 0d7f8a0 commit 60e377c

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

entrypoint.prod.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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+
16
python manage.py collectstatic --noinput
27
python manage.py migrate --noinput
3-
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

Comments
 (0)