8 lines
227 B
Bash
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
|