Files
state-corp-backend/docker/scripts/start-web.sh
Aleksandr Meshchriakov bd8e1a8400
All checks were successful
CI/CD Pipeline / Code Quality Checks (push) Successful in 2m41s
CI/CD Pipeline / Run Tests (push) Successful in 2m47s
CI/CD Pipeline / Build Docker Images (push) Successful in 2m24s
CI/CD Pipeline / Push to Gitea Registry (push) Successful in 0s
CI/CD Pipeline / Deploy to Server (push) Successful in 0s
feat: import additional exchange sections
2026-05-12 15:19:26 +02:00

18 lines
459 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:-300}" \
--access-logfile "-" \
--error-logfile "-"