"""Executable entry point: migrations run first, then uvicorn as PID 1.""" from __future__ import annotations import sys from pathlib import Path import uvicorn if __package__ in {None, ""}: sys.path.insert(0, str(Path(__file__).resolve().parents[1])) from src.application import create_app # noqa: E402 from src.config import load_address # noqa: E402 app = create_app() def run() -> None: host, port = load_address() uvicorn.run( app, host=host, port=port, access_log=False, timeout_graceful_shutdown=8, log_level="info", ) if __name__ == "__main__": run()