hm_ai_qc_report_tool/docker-entrypoint.sh
nickviljoen 2258fa532b Phase 0: bootstrap Alembic, add /health, prep for Dev/Prod cutover
- core/health blueprint exposes GET /health for deploy smoke tests
- Replace db.create_all() + ensure_schema() ALTER patch with Alembic
- Initial migration captures current schema (5 tables, all indexes)
- docker-entrypoint runs wait_for_db.py + flask db upgrade before gunicorn
2026-05-09 13:47:54 +02:00

11 lines
241 B
Bash
Executable file

#!/usr/bin/env bash
set -euo pipefail
echo "[entrypoint] waiting for database..."
python wait_for_db.py
echo "[entrypoint] running flask db upgrade..."
FLASK_APP=app:app flask db upgrade
echo "[entrypoint] starting gunicorn..."
exec "$@"