schon/scripts/Docker/app-entrypoint.sh
2025-10-25 16:06:02 +03:00

19 lines
386 B
Bash

#!/usr/bin/bash
set -e
uv run python manage.py await_services
if [ "${DEBUG:-0}" = "1" ]; then
uv run gunicorn evibes.wsgi:application \
--bind 0.0.0.0:8000 \
--workers 2 \
--reload \
--log-level debug \
--access-logfile - \
--error-logfile -
else
uv run gunicorn evibes.wsgi:application \
--bind 0.0.0.0:8000 \
--workers 12 \
--timeout 120
fi