schon/scripts/Docker/app-entrypoint.sh
Egor fureunoir Gorbunov 118882ac1b Features: 1) Add new make-messages.ps1 and compile-messages.ps1 scripts for Windows localization workflow; 2) Update Docker ENTRYPOINT scripts to use bash for app, worker, stock_updater, and beat containers; 3) Bump project version to 2.9.1 in pyproject.toml and settings;
Fixes: 1) Ensure `install.ps1` handles non-zero exit codes gracefully; 2) Remove redundant `vm.overcommit_memory` Docker sysctl setting; 3) Add explicit exit command to `starter.ps1` for clean terminations;

Extra: Minor formatting and consistency improvements across ENTRYPOINT scripts;
2025-07-03 18:33:37 +03:00

21 lines
459 B
Bash

#!/usr/bin/bash
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