mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-04-04 04:34:52 +08:00
Opt: Set reload checker delay to 1
This commit is contained in:
2
gui.py
2
gui.py
@@ -87,7 +87,7 @@ def run_with_reload(host, port):
|
|||||||
uvicorn module.webui.app:app --factory --host 127.0.0.1 --port 22267 --reload --reload-include="reloadflag" --reload-exclude="*.py" --reload-dir="./config/"
|
uvicorn module.webui.app:app --factory --host 127.0.0.1 --port 22267 --reload --reload-include="reloadflag" --reload-exclude="*.py" --reload-dir="./config/"
|
||||||
"""
|
"""
|
||||||
uvicorn.run('module.webui.app:app', host=host, port=port, factory=True, reload_dirs=[os.path.join(os.getcwd(), './config/')],
|
uvicorn.run('module.webui.app:app', host=host, port=port, factory=True, reload_dirs=[os.path.join(os.getcwd(), './config/')],
|
||||||
reload=True, reload_includes=['reloadflag'], reload_excludes=['*.py'])
|
reload=True, reload_includes=['reloadflag'], reload_excludes=['*.py'], reload_delay=1)
|
||||||
|
|
||||||
|
|
||||||
def run_without_reload(host, port):
|
def run_without_reload(host, port):
|
||||||
|
|||||||
Reference in New Issue
Block a user