mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 07:28:21 +08:00
Opt: Change directories of reload listening
This commit is contained in:
4
gui.py
4
gui.py
@@ -97,9 +97,9 @@ if __name__ == '__main__':
|
||||
logger.attr('Port', port)
|
||||
|
||||
try:
|
||||
os.remove('./reloadflag')
|
||||
os.remove('./config/reloadflag')
|
||||
except:
|
||||
pass
|
||||
|
||||
uvicorn.run('module.webui.app:app', host=host, port=port, factory=True,
|
||||
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'])
|
||||
|
||||
Reference in New Issue
Block a user