remove unused __main__ block, ws ping settings belong in uvicorn CLI
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
9c23fc6c52
commit
899636424b
1 changed files with 1 additions and 15 deletions
16
app.py
16
app.py
|
|
@ -569,18 +569,4 @@ app.include_router(navigationRouter)
|
|||
from modules.system.registry import loadFeatureRouters
|
||||
|
||||
featureLoadResults = loadFeatureRouters(app)
|
||||
logger.info(f"Feature router load results: {featureLoadResults}")
|
||||
|
||||
# ============================================================================
|
||||
# LOCAL DEV / DIRECT RUN
|
||||
# ============================================================================
|
||||
if __name__ == "__main__":
|
||||
import uvicorn
|
||||
uvicorn.run(
|
||||
"app:app",
|
||||
host="0.0.0.0",
|
||||
port=int(os.environ.get("PORT", "8000")),
|
||||
ws_ping_interval=300,
|
||||
ws_ping_timeout=300,
|
||||
reload=True,
|
||||
)
|
||||
logger.info(f"Feature router load results: {featureLoadResults}")
|
||||
Loading…
Reference in a new issue