diff options
author | Wojtek Kosior <koszko@koszko.org> | 2022-04-22 17:13:24 +0200 |
---|---|---|
committer | Wojtek Kosior <koszko@koszko.org> | 2022-04-25 13:19:07 +0200 |
commit | ff0f2d207c47b9e473c356227b32c19e4510b4be (patch) | |
tree | 84b3064f031727f3d9e61ed56d71269ab5f620c8 /doc | |
parent | 4d8810538798aa815a459f298349a03fc6b3ea3f (diff) | |
download | haketilo-hydrilla-ff0f2d207c47b9e473c356227b32c19e4510b4be.tar.gz haketilo-hydrilla-ff0f2d207c47b9e473c356227b32c19e4510b4be.zip |
support --help and --version options when running the sample wsgi script from command line
Diffstat (limited to 'doc')
-rw-r--r-- | doc/examples/hydrilla.wsgi | 9 |
1 files changed, 7 insertions, 2 deletions
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'])) |