wsgi: instanciating HgServe only if environ var is present
This depends onto heptapod-docker!5, which sets said environment variable. This still allows us to run in a gunicorn one-liner without any further wrapper, while being less hardcoded and unit-testable, as the first test demonstrates. It would be even nicer to instantiate `HgServe` without any configuration file (relying e.g. on baseui to pass configuration), this could be done later.
heptapod/tests/test_wsgi.py
0 → 100644
Please register or sign in to comment