Files
mtusi2026lab2/entrypoint.sh
T
2026-10-30 19:37:21 +03:00

8 lines
227 B
Bash

#!/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