From 6e91498e64f3081c9d37f8f6e5fd3e3086de9741 Mon Sep 17 00:00:00 2001 From: Steffen Prince Date: Sun, 4 Oct 2015 18:51:27 -0700 Subject: [PATCH] docs: run() should not be used in production Refs #1102 --- flask/app.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/flask/app.py b/flask/app.py index 2d24d8b2..694f079f 100644 --- a/flask/app.py +++ b/flask/app.py @@ -770,8 +770,13 @@ class Flask(_PackageBoundObject): return rv def run(self, host=None, port=None, debug=None, **options): - """Runs the application on a local development server. If the - :attr:`debug` flag is set the server will automatically reload + """Runs the application on a local development server. + + Do not use ``run()`` in a production setting. It is not intended to + meet security and performance requirements for a production server. + Instead, see :ref:`deployment` for WSGI server recommendations. + + If the :attr:`debug` flag is set the server will automatically reload for code changes and show a debugger in case an exception happened. If you want to run the application in debug mode, but disable the