Files
factoryOps-v2/scripts/entrypoint.sh
Johngreen eb3dd0a4ab
All checks were successful
Deploy to Production / deploy (push) Successful in 47s
fix(ci): reset stale DB volume, skip create_all in prod, handle alembic stamp fallback
2026-02-10 12:46:49 +09:00

14 lines
357 B
Bash
Executable File

#!/bin/sh
echo "Running Alembic migrations..."
python -m alembic upgrade head 2>&1 || {
echo "Migration failed, stamping current state..."
python -m alembic stamp head 2>&1
}
echo "Running seed data..."
python scripts/seed.py 2>&1 || echo "Seed skipped (may already exist)"
echo "Starting uvicorn..."
exec uvicorn main:app --host 0.0.0.0 --port 8000