3
0
Fork 0

fix: add root_path config setting for running webapp via uvicorn

This commit is contained in:
Lance Edgar 2025-01-23 17:37:32 -06:00
parent 455a0906c6
commit 5aae0ec450
2 changed files with 5 additions and 2 deletions

View file

@ -74,6 +74,7 @@ def webapp(
'reload_dirs': config.get_list(f'{config.appname}.web.app.reload_dirs'),
'factory': config.get_bool(f'{config.appname}.web.app.factory', default=False),
'interface': config.get(f'{config.appname}.web.app.interface', default='auto'),
'root_path': config.get(f'{config.appname}.web.app.root_path'),
}
# also must inject our config files to env, since there is no

View file

@ -88,7 +88,8 @@ app.spec = wuttaweb.app:make_wsgi_app
reload=False,
reload_dirs=None,
factory=False,
interface='auto')
interface='auto',
root_path=None)
# with reload
uvicorn.run.reset_mock()
@ -101,4 +102,5 @@ app.spec = wuttaweb.app:make_wsgi_app
reload=True,
reload_dirs=None,
factory=False,
interface='auto')
interface='auto',
root_path=None)