summaryrefslogtreecommitdiff
path: root/src/hydrilla/server/serve.py
diff options
context:
space:
mode:
authorWojtek Kosior <koszko@koszko.org>2022-04-27 11:45:18 +0200
committerWojtek Kosior <koszko@koszko.org>2022-04-27 11:55:46 +0200
commitcb8ce3160afd963cec6186e535232275d9930b3c (patch)
tree48acbfcd430f773fabfeef70fea8ffb257fb136e /src/hydrilla/server/serve.py
parentf87ae447ba96693b80f450547acd2ff762a8fa85 (diff)
downloadhaketilo-hydrilla-cb8ce3160afd963cec6186e535232275d9930b3c.tar.gz
haketilo-hydrilla-cb8ce3160afd963cec6186e535232275d9930b3c.zip
fix/improve wsgi deployment
Diffstat (limited to 'src/hydrilla/server/serve.py')
-rw-r--r--src/hydrilla/server/serve.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/hydrilla/server/serve.py b/src/hydrilla/server/serve.py
index d2835f6..d07d44f 100644
--- a/src/hydrilla/server/serve.py
+++ b/src/hydrilla/server/serve.py
@@ -625,10 +625,13 @@ start = click.command()(start)
@click.version_option(version=_version.version, prog_name='Hydrilla',
message=_('%(prog)s_%(version)s_license'),
help=_('version_printing'))
-def start_wsgi(_config=None) -> None:
+def start_wsgi() -> None:
"""<this will be replaced by a localized docstring for Click to pick up>"""
- return HydrillaApp(_config or config.load())
+ return HydrillaApp(click.get_current_context().obj or config.load())
start_wsgi.__doc__ = _('serve_hydrilla_packages_wsgi_help')
-start_wsgi = click.command()(start_wsgi)
+start_wsgi = click.command(context_settings={
+ 'ignore_unknown_options': True,
+ 'allow_extra_args': True
+})(start_wsgi)