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