import subprocess import sys from app.config import get_settings def main() -> None: settings = get_settings() command = [ sys.executable, "-m", "uvicorn", "app.main:app", "--host", settings.host, "--port", str(settings.port), ] raise SystemExit(subprocess.call(command)) if __name__ == "__main__": main()