Mercurial > piecrust2
diff piecrust/serving/wrappers.py @ 865:1bb0d973dc69
serve: Disable Werkzeug's debugger PIN.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Thu, 08 Jun 2017 23:32:19 -0700 |
parents | 4850f8c21b6e |
children | 33a89139c284 |
line wrap: on
line diff
--- a/piecrust/serving/wrappers.py Thu Jun 08 23:31:45 2017 -0700 +++ b/piecrust/serving/wrappers.py Thu Jun 08 23:32:19 2017 -0700 @@ -57,6 +57,9 @@ signal.signal(signal.SIGINT, lambda *args: _shutdown_server_and_raise_sigint()) + # Disable debugger PIN protection. + os.environ['WERKZEUG_DEBUG_PIN'] = 'off' + try: run_simple(host, port, app, threaded=True,