@@ -50,7 +50,12 @@ This project uses famous football coaches as release codenames, following an A-Z
5050 11 Starting XI players, ` 003 ` seeds 15 Substitute players (all with
5151 deterministic UUID v5 values); ` alembic upgrade head ` applied by
5252 ` entrypoint.sh ` (Docker) or manually for local development (#2 )
53- - ` alembic==1.18.4 ` , ` asyncpg==0.31.0 ` added to dependencies (#2 )
53+ - ` alembic==1.18.4 ` , ` asyncpg==0.31.0 ` , ` gunicorn==25.3.0 ` added to dependencies (#2 )
54+ - ` gunicorn.conf.py ` : Gunicorn configuration — binds to ` 0.0.0.0:9000 ` , uses
55+ ` UvicornWorker ` , derives worker count from ` WEB_CONCURRENCY ` env var; the
56+ ` on_starting ` hook runs ` alembic upgrade head ` once in the master process
57+ before any workers are forked, replacing the entrypoint-driven migration
58+ pattern (#2 )
5459- ` tests/test_migrations.py ` : integration tests for migration downgrade paths —
5560 verifies each step removes only its seeded rows and restores correctly (#2 )
5661- ` tests/conftest.py ` : session-scoped ` apply_migrations ` fixture runs
@@ -78,8 +83,10 @@ This project uses famous football coaches as release codenames, following an A-Z
7883- ` Dockerfile ` : removed ` COPY storage/ ./hold/ ` and its associated comment;
7984 added ` COPY alembic.ini ` and ` COPY alembic/ ` (#2 )
8085- ` scripts/entrypoint.sh ` : checks for an existing database file in the Docker
81- volume; runs ` alembic upgrade head ` only on first start; adds structured
82- ` log() ` helper with timestamps, emojis, and API/Swagger UI addresses (#2 )
86+ volume (informational logging only); adds structured ` log() ` helper with
87+ timestamps and API/Swagger UI addresses; migrations delegated to Gunicorn
88+ ` on_starting ` hook (#2 )
89+ - ` Dockerfile ` : replaced ` CMD uvicorn ` with ` CMD gunicorn -c gunicorn.conf.py ` (#2 )
8390- ` compose.yaml ` : replaced ` STORAGE_PATH ` with ` DATABASE_URL ` pointing to the
8491 SQLite volume path (#2 )
8592- ` .gitignore ` : added ` *.db ` ; ` storage/players-sqlite3.db ` removed from git
0 commit comments