schon/scripts/Docker/app-entrypoint.sh
Egor fureunoir Gorbunov ae1d16edda Features: Move from poetry to uv.
Fixes: Removed naive datetime warning

Extra: Correct import in elasticsearch submodule.
2025-10-25 02:18:41 +03:00

21 lines
437 B
Bash

#!/usr/bin/bash
set -e
# wait for auxiliary services
uv run python manage.py await_services
# choose dev vs prod
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