diff --git a/doc/config.rst b/doc/config.rst index cd8ebf976ab1651b8e908df765c1aa1f86142617..bb7d27e4ee76bfdd687c33db0955961cb16ef83f 100644 --- a/doc/config.rst +++ b/doc/config.rst @@ -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` diff --git a/mutalyzer/config/default_settings.py b/mutalyzer/config/default_settings.py index 84c2373e813f37a1f7305440e14cc35df04ef07e..f985e8ce1179987f07f9d63a71b13ef707090a64 100644 --- a/mutalyzer/config/default_settings.py +++ b/mutalyzer/config/default_settings.py @@ -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 diff --git a/mutalyzer/entrypoints/website.py b/mutalyzer/entrypoints/website.py index 48ca96f0a19607d16fdf77230b914caf5e9ae5d0..7e8a2f8f2d9456a63ac25ad76dc84e9579989b4c 100644 --- a/mutalyzer/entrypoints/website.py +++ b/mutalyzer/entrypoints/website.py @@ -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():