Files
state-corp-backend/docker/scripts/start-web.sh
Aleksandr Meshchriakov 345b1d0cc8
Some checks failed
CI/CD Pipeline / Run Tests (push) Failing after 45s
CI/CD Pipeline / Code Quality Checks (push) Failing after 48s
CI/CD Pipeline / Build Docker Images (push) Has been skipped
CI/CD Pipeline / Push to Gitea Registry (push) Has been skipped
CI/CD Pipeline / Deploy to Server (push) Has been skipped
Add initial implementations for forms and organization apps with serializers, factories, and admin configurations
2026-03-28 18:23:06 +01:00

18 lines
458 B
Bash
Executable File

#!/usr/bin/env sh
set -eu
export DJANGO_SETTINGS_MODULE="${DJANGO_SETTINGS_MODULE:-settings.production}"
export STARTUP_COMPONENT="${STARTUP_COMPONENT:-web}"
case "${DJANGO_SETTINGS_MODULE}" in
settings.dev|settings.production|settings.test)
;;
esac
exec gunicorn core.wsgi:application \
--bind "0.0.0.0:${PORT:-8000}" \
--workers "${GUNICORN_WORKERS:-3}" \
--timeout "${GUNICORN_TIMEOUT:-60}" \
--access-logfile "-" \
--error-logfile "-"