diff options
author | Wojtek Kosior <koszko@koszko.org> | 2022-04-27 12:08:26 +0200 |
---|---|---|
committer | Wojtek Kosior <koszko@koszko.org> | 2022-04-27 12:08:26 +0200 |
commit | c50d1505d307bf6711d12001d173ae14d91548ab (patch) | |
tree | a1591a5f7791462213fa63b74c9e2e802bf7e961 /doc/examples/hydrilla.wsgi | |
parent | bbb9e6fbbec3f6f83b72baf9d337b93aa5f0cb21 (diff) | |
parent | ae96024993f111bcb1e48824f5f63be63ef38b1f (diff) | |
download | haketilo-hydrilla-c50d1505d307bf6711d12001d173ae14d91548ab.tar.gz haketilo-hydrilla-c50d1505d307bf6711d12001d173ae14d91548ab.zip |
Update upstream source from tag 'upstream/1.0'
Update to upstream version '1.0'
with Debian dir f4a8cf6c148c483e4efd4e885ebc690eea98b8c1
Diffstat (limited to 'doc/examples/hydrilla.wsgi')
-rw-r--r-- | doc/examples/hydrilla.wsgi | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/doc/examples/hydrilla.wsgi b/doc/examples/hydrilla.wsgi new file mode 100644 index 0000000..70dd895 --- /dev/null +++ b/doc/examples/hydrilla.wsgi @@ -0,0 +1,27 @@ +#!/usr/bin/env python3 + +# SPDX-License-Identifier: CC0-1.0 + +# Sample WSGI script for Hydrilla server. +# +# Copyright (C) 2022 Wojtek Kosior + +# Uncomment the lines below if you want to use a virtualenv installation of +# Hydrilla. + +#from pathlib import Path +#path = Path('/path/to/virtualenv/bin/activate_this.py') +#exec(path.read_text(), {'__file__': str(path)}) + +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 = start_wsgi(standalone_mode=False) + +# Comment the above and uncomment this to use a different config file. + +#from hydrilla.server import config +#application = start_wsgi(standalone_mode=False, +# obj=config.load(['/path/to/config.json'])) |