新增代码

This commit is contained in:
2025-12-30 18:37:07 +08:00
parent c07fe6b938
commit 1ab3c87709
13 changed files with 1374 additions and 64 deletions

View File

@@ -1,11 +1,12 @@
"""启动脚本 - 从config读取配置"""
import uvicorn
from app.main import app
from app.config import settings
if __name__ == "__main__":
uvicorn.run(
"app.main:app",
app,
host="0.0.0.0",
port=settings.PORT,
reload=settings.DEBUG
reload=False,
workers=1
)