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;
21 lines
459 B
Bash
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
|