schon/scripts/Docker/app-entrypoint.sh
Egor fureunoir Gorbunov 328ccaa615 Features: 1) 2.8.9 update
Fixes: 1) wtf go read diff;

Extra: ???
2025-06-18 15:05:58 +03:00

21 lines
No EOL
460 B
Bash

#!/usr/bin/env sh
set -e
# wait for auxiliary services
poetry run python manage.py await_services
# choose dev vs prod
if [ "${DEBUG:-0}" = "1" ]; then
exec poetry run gunicorn evibes.wsgi:application \
--bind 0.0.0.0:8000 \
--workers 2 \
--reload \
--log-level debug \
--access-logfile - \
--error-logfile -
else
exec poetry run gunicorn evibes.wsgi:application \
--bind 0.0.0.0:8000 \
--workers 12 \
--timeout 120
fi