Files
factoryOps-v2/scripts/entrypoint.sh
Johngreen 782dc225bf
All checks were successful
Deploy to Production / deploy (push) Successful in 44s
feat(ci): auto-run alembic migrations and seed on container start
- Add entrypoint.sh (migrate → seed → uvicorn)
- Add python-dotenv to requirements.txt
- Backend container uses entrypoint instead of direct uvicorn

Co-Authored-By: Claude Opus 4 <noreply@anthropic.com>
2026-02-10 12:36:01 +09:00

12 lines
215 B
Bash
Executable File

#!/bin/sh
set -e
echo "Running Alembic migrations..."
python -m alembic upgrade head
echo "Running seed data..."
python scripts/seed.py
echo "Starting uvicorn..."
exec uvicorn main:app --host 0.0.0.0 --port 8000