aboutsummaryrefslogtreecommitdiff
path: root/doc/examples/hydrilla.wsgi
blob: 480722db7f83b7e436b6397a4b4901014724abd4 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/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
#from pathlib import Path
#application = start_wsgi(standalone_mode=False,
#                         obj=config.load([Path('/path/to/config.json')]))
/span>Add (guix status) and use it for pretty colored output....Ludovic Courtès 2018-06-14Remove 'guix-register' and its traces....Ludovic Courtès 2018-06-14database: 'with-database' can now initialize new databases....Ludovic Courtès 2018-05-17daemon: Allow building for armhf-linux on aarch64-linux....Efraim Flashner 2018-03-30daemon: Remove unused schema upgrade code....Ludovic Courtès 2018-03-30daemon: Remove dead code....Ludovic Courtès 2018-01-11daemon: Always try to execute the builder regardless of the platform....Ludovic Courtès 2018-01-07daemon: Make libbz2 an optional dependency....Ludovic Courtès 2018-01-07daemon: Add gzip log compression....Ludovic Courtès 2017-08-18Simplify remouting with MS_PRIVATE in sandbox build...Jörg Thalheim 2017-08-07daemon: Ensure the child stack is aligned on a 16-byte boundary....Mark H Weaver 2017-08-05daemon: On aarch64, use increments of 16 on the stack....Efraim Flashner 2017-08-05Revert "daemon: Ensure proper alignment on the stack."...Mark H Weaver