From ff0f2d207c47b9e473c356227b32c19e4510b4be Mon Sep 17 00:00:00 2001 From: Wojtek Kosior Date: Fri, 22 Apr 2022 17:13:24 +0200 Subject: support --help and --version options when running the sample wsgi script from command line --- doc/examples/hydrilla.wsgi | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'doc') diff --git a/doc/examples/hydrilla.wsgi b/doc/examples/hydrilla.wsgi index 0a3769b..3455701 100644 --- a/doc/examples/hydrilla.wsgi +++ b/doc/examples/hydrilla.wsgi @@ -13,9 +13,14 @@ #path = Path('/path/to/virtualenv/bin/activate_this.py') #exec(path.read_text(), {'__file__': str(path)}) -from hydrilla.server import HydrillaApp, config +from hydrilla.server import start_wsgi # The following line will initialize Hydrilla with the default, internal # configuration while also attempting to load /etc/hydrilla/config.json if it's # present. -application = HydrillaApp(config.load()) +application = start_wsgi() + +# Comment the above and uncomment this to use a different config file. + +#from hydrilla.server import config +#application = start_wsgi(config.load(['/path/to/config.json'])) -- cgit v1.2.3