docs: run() should not be used in production

Refs #1102
This commit is contained in:
Steffen Prince 2015-10-04 18:51:27 -07:00 committed by sprin
parent 1ac4156016
commit 6e91498e64
1 changed files with 7 additions and 2 deletions

View File

@ -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