This commit is contained in:
2026-03-29 05:31:19 +08:00
parent 4db5de796a
commit 645358862a
10 changed files with 134 additions and 106 deletions
+23
View File
@@ -0,0 +1,23 @@
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()