新增代码
This commit is contained in:
@@ -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
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user