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