14 lines
357 B
Bash
Executable File
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
|