強化 CD Gunicorn 掛載與 metrics 降噪
All checks were successful
CD Pipeline / deploy (push) Successful in 9m26s

This commit is contained in:
OoO
2026-04-30 09:13:36 +08:00
parent 8bd44b1131
commit 73561efa7a
15 changed files with 120 additions and 21 deletions

View File

@@ -0,0 +1,12 @@
from pathlib import Path
ROOT = Path(__file__).resolve().parents[1]
DOCKER_COMPOSE = ROOT / "docker-compose.yml"
def test_momo_app_mounts_gunicorn_config_for_sync_deploys():
compose = DOCKER_COMPOSE.read_text(encoding="utf-8")
assert 'command: ["gunicorn", "--config", "gunicorn.conf.py", "app:app"]' in compose
assert "- ./gunicorn.conf.py:/app/gunicorn.conf.py:ro" in compose