1
0
Fork 0

update: 不使用UVICORN的多worker模式

This commit is contained in:
Killua777 2024-05-13 10:42:37 +08:00
parent 065528f509
commit 11c429befa
1 changed files with 2 additions and 3 deletions

View File

@ -3,9 +3,8 @@ import uvicorn
if __name__ == "__main__":
uvicorn.run("app.main:app", host=Config.UVICORN.HOST, port=Config.UVICORN.PORT, workers=Config.UVICORN.WORKERS)
uvicorn.run(app, host=Config.UVICORN.HOST, port=Config.UVICORN.PORT)
#uvicorn.run("app.main:app", host=Config.UVICORN.HOST, port=Config.UVICORN.PORT, workers=Config.UVICORN.WORKERS)
# _ooOoo_ #
# o8888888o #
# 88" . "88 #