[Flask] Why flask.run() is not for production environment

Deepak Jose deepakpjose at gmail.com
Mon Jul 10 04:10:45 EDT 2017


Hi Team,

Can someone explain me why run() is not good for production environment?
All the examples I have seen for flask use run. Can someone help me to
understand why it is not recommended and
how we have to deploy our app then? The :ref:'deployment' can be found
where?

Excerpts from flask documentation for run:

def run(self, host=None, port=None, debug=None, **options):
"""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.*Thanks,
Deepak
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/flask/attachments/20170710/402d7b42/attachment.html>


More information about the Flask mailing list