lab2: postgres, redis sessions, persistence, EXPLAIN and tests
Skeleton contracts / contracts (pull_request) Canceled after 0s

This commit is contained in:
2026-10-19 21:35:11 +03:00
parent 65003b6119
commit 358ea9371b
20 changed files with 675 additions and 20 deletions
+23
View File
@@ -0,0 +1,23 @@
"""Entry point: uvicorn as PID 1 with env-driven host/port and graceful shutdown."""
import os
import uvicorn
from .main import app
def main() -> None:
host = os.environ.get("APP_HOST", "0.0.0.0")
port = int(os.environ.get("APP_PORT", "8080"))
uvicorn.run(
app,
host=host,
port=port,
log_level="info",
access_log=True,
timeout_graceful_shutdown=5,
)
if __name__ == "__main__":
main()