public-health-ch/entrypoint
2025-09-24 16:46:06 +05:30

16 lines
No EOL
285 B
Bash
Executable file

#!/bin/sh
set -e
if [ "${COLLECT_STATIC-}" ]; then
./manage.py collectstatic --no-input
fi
exec /venv/bin/dumb-init -- gunicorn \
-b [::]:8000 \
--log-file=- \
--worker-tmp-dir /dev/shm \
--workers=2 \
--threads=4 \
--worker-class=gthread \
publichealth.wsgi