- 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
11 lines
241 B
Bash
Executable file
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 "$@"
|