Files
mtusi2026lab4/entrypoint.sh
T

8 lines
227 B
Bash
Executable File

#!/bin/sh
# Apply versioned migrations (idempotent, advisory-locked), then hand PID 1 to
# the server so SIGTERM reaches uvicorn directly and shutdown stays graceful.
set -eu
python -B -m src.migrate
exec python -B src/app.py