Some checks failed
Deploy Development / deploy (push) Successful in 33s
Test Suite / pytest-backend (push) Failing after 4s
Test Suite / k6 /api/health Baseline (push) Has been skipped
Test Suite / playwright-smoke (push) Has been skipped
Test Suite / lint-backend (push) Successful in 1s
Test Suite / compose-smoke (push) Has been skipped
Co-authored-by: Cursor <cursoragent@cursor.com>
27 lines
734 B
Bash
27 lines
734 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
|
|
|
|
if [ "${SKIP_RIGHTS_SYNC}" != "1" ] && [ "${SKIP_RIGHTS_SYNC}" != "true" ] && [ "${SKIP_RIGHTS_SYNC}" != "yes" ]; then
|
|
python sync_rights_registry.py
|
|
else
|
|
echo "[SKIP_RIGHTS_SYNC] Rights-Registry-Sync übersprungen"
|
|
fi
|
|
|
|
export KAIRO_DB_READY=1
|
|
echo "=== Starte Anwendung: $* ==="
|
|
exec "$@"
|