|
@@ -12,7 +12,7 @@ if config.reload and not inspect.stack()[-2].filename.endswith('spawn.py'):
|
|
uvicorn.run('nicegui:app', host=config.host, port=config.port, lifespan='on', reload=True)
|
|
uvicorn.run('nicegui:app', host=config.host, port=config.port, lifespan='on', reload=True)
|
|
sys.exit()
|
|
sys.exit()
|
|
|
|
|
|
-def run(self, *, host='0.0.0.0', port=80, title='NiceGUI', favicon='favicon.png', reload=True, show=True):
|
|
|
|
|
|
+def run(self, *, host='0.0.0.0', port=80, title='NiceGUI', favicon='favicon.ico', reload=True, show=True):
|
|
|
|
|
|
if reload == False: # NOTE: in case reload == True we already started uvicorn above
|
|
if reload == False: # NOTE: in case reload == True we already started uvicorn above
|
|
if show:
|
|
if show:
|