Skip to content
Snippets Groups Projects
Commit 7789c65b authored by Vermaat's avatar Vermaat
Browse files

Merge pull request #71 from mutalyzer/configurable-reloader

Using the Werkzeug reloader is configurable
parents a53cc8e4 15ca4939
No related branches found
No related tags found
No related merge requests found
......@@ -246,3 +246,13 @@ NEGATIVE_PROTEIN_LINK_EXPIRATION
(in seconds).
`Default value:` `60 * 60 * 24 * 5` (5 days)
USE_RELOADER
Enable the `Werkzeug reloader
<http://werkzeug.pocoo.org/docs/0.10/serving/#reloader>`_ for the website.
This is disabled by default due to `a bug with using the reloader
<https://github.com/mitsuhiko/werkzeug/issues/461#issuecomment-139369694>`_
in combination with ``python -m mutalyzer.entrypoints.website``.
`Default value:` `False`
......@@ -88,3 +88,9 @@ PIWIK_BASE_URL = 'https://piwik.example.com'
# Piwik site ID for Mutalyzer.
PIWIK_SITE_ID = 1
# Enable the Werkzeug reloader for the website.
# This is disabled by default due to a bug with using the reloader in
# combination with `python -m mutalyzer.entrypoints.website`.
# https://github.com/mitsuhiko/werkzeug/issues/461#issuecomment-139369694
USE_RELOADER = False
......@@ -59,7 +59,8 @@ def debugserver(host, port):
"""
Run the website with the Python built-in HTTP server.
"""
application.run(host=host, port=port, debug=True, use_reloader=True)
application.run(host=host, port=port, debug=True,
use_reloader=settings.USE_RELOADER)
def main():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment