fix: add root_path
config setting for running webapp via uvicorn
This commit is contained in:
parent
455a0906c6
commit
5aae0ec450
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue