mirror of
https://github.com/MODSetter/SurfSense.git
synced 2025-09-10 06:14:37 +00:00
add hot reloading to backend, small readme updates
This commit is contained in:
parent
a5c6cf246d
commit
30288c7552
2 changed files with 15 additions and 4 deletions
|
@ -1,4 +1,15 @@
|
|||
import uvicorn
|
||||
import argparse
|
||||
|
||||
if __name__ == "__main__":
|
||||
uvicorn.run("app.app:app", host="0.0.0.0", log_level="info", loop="asyncio")
|
||||
parser = argparse.ArgumentParser(description='Run the SurfSense application')
|
||||
parser.add_argument('--reload', action='store_true', help='Enable hot reloading')
|
||||
args = parser.parse_args()
|
||||
|
||||
uvicorn.run(
|
||||
"app.app:app",
|
||||
host="0.0.0.0",
|
||||
log_level="info",
|
||||
reload=args.reload,
|
||||
reload_dirs=["app"]
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue