Commit 82570461 by 江名洋

feat: 支持子路径部署适配 root_path

1 parent 5d82719d
Showing 1 changed file with 6 additions and 5 deletions
...@@ -154,10 +154,11 @@ async def health(): ...@@ -154,10 +154,11 @@ async def health():
if __name__ == "__main__": if __name__ == "__main__":
# 端口指定 9500 # 端口指定 9500,root_path 适配子路径部署(如 /daw)
uvicorn.run( uvicorn.run(
"main:app", "main:app",
host="0.0.0.0", host="0.0.0.0",
port=9500, port=9500,
reload=settings.APP_DEBUG reload=settings.APP_DEBUG,
root_path=settings.ROOT_PATH or "",
) )
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!