Kairo-Jinkendo/backend/entrypoint.sh
Lars 598677d343
All checks were successful
Deploy Development / deploy (push) Successful in 1m0s
Test Suite / pytest-backend (push) Successful in 9s
Test Suite / lint-backend (push) Successful in 2s
Test Suite / compose-smoke (push) Has been skipped
Test Suite / k6 /api/health Baseline (push) Successful in 18s
Test Suite / playwright-smoke (push) Successful in 12s
Deploy-Fix: Migrationen/Seeds im Entrypoint, laengere Healthcheck-Phase, Logs bei Fehler.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-04 20:38:49 +02:00

21 lines
510 B
Bash

#!/bin/sh
set -e
echo "=== Kairo Backend Startup ==="
if [ "${SKIP_DB_MIGRATE}" != "1" ] && [ "${SKIP_DB_MIGRATE}" != "true" ] && [ "${SKIP_DB_MIGRATE}" != "yes" ]; then
python run_migrations.py
else
echo "[SKIP_DB_MIGRATE] Migrationen übersprungen"
fi
if [ "${SKIP_SEEDS}" != "1" ] && [ "${SKIP_SEEDS}" != "true" ] && [ "${SKIP_SEEDS}" != "yes" ]; then
python run_seeds.py
else
echo "[SKIP_SEEDS] Data-Seeds übersprungen"
fi
export KAIRO_DB_READY=1
echo "=== Starte Anwendung: $* ==="
exec "$@"