Harden container deployment lifecycle
deploy / deploy (push) Canceled after 0s

This commit is contained in:
Jens
2026-07-21 21:35:52 +02:00
parent a4eced8be5
commit 213bdb60a5
7 changed files with 62 additions and 9 deletions
+6 -3
View File
@@ -3,10 +3,13 @@ set -eu
mkdir -p /app/media /app/logs /app/local
mkdir -p /tmp/celery
python manage.py migrate --noinput
if [ "${VACATURERADAR_AUTO_BOOTSTRAP:-0}" = "1" ]; then
python manage.py bootstrap_instance || true
if [ "${VACATURERADAR_RUN_MIGRATIONS:-1}" = "1" ]; then
python manage.py migrate --noinput
if [ "${VACATURERADAR_AUTO_BOOTSTRAP:-0}" = "1" ]; then
python manage.py bootstrap_instance || true
fi
fi
exec "$@"