Erste lauffähige Version

This commit is contained in:
2026-05-21 10:36:16 +02:00
commit 6a103adac4
98 changed files with 4107 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
#!/bin/bash
set -euo pipefail
ROLE="${ROLE:-web}"
if [[ "$ROLE" == "web" ]]; then
echo "[entrypoint] waiting for database..."
python manage.py wait_for_db --timeout 60 || true
echo "[entrypoint] running migrations..."
python manage.py migrate --noinput
if [[ "${DJANGO_DEBUG:-False}" != "True" ]]; then
echo "[entrypoint] collecting static files..."
python manage.py collectstatic --noinput --clear
fi
fi
echo "[entrypoint] starting role=$ROLE: $*"
exec "$@"