2011-06-26 02:09:37 +08:00
|
|
|
.. _deployment:
|
|
|
|
|
2010-04-19 17:23:44 +08:00
|
|
|
Deployment Options
|
|
|
|
==================
|
|
|
|
|
2014-09-07 05:05:00 +08:00
|
|
|
While lightweight and easy to use, **Flask's built-in server is not suitable
|
|
|
|
for production** as it doesn't scale well and by default serves only one
|
|
|
|
request at a time. Some of the options available for properly running Flask in
|
|
|
|
production are documented here.
|
2014-09-07 04:19:57 +08:00
|
|
|
|
|
|
|
If you want to deploy your Flask application to a WSGI server not listed here,
|
|
|
|
look up the server documentation about how to use a WSGI app with it. Just
|
|
|
|
remember that your :class:`Flask` application object is the actual WSGI
|
|
|
|
application.
|
|
|
|
|
|
|
|
|
|
|
|
Hosted options
|
|
|
|
--------------
|
|
|
|
|
|
|
|
- `Deploying Flask on Heroku <https://devcenter.heroku.com/articles/getting-started-with-python>`_
|
2015-04-01 07:13:29 +08:00
|
|
|
- `Deploying Flask on OpenShift <https://developers.openshift.com/en/python-flask.html>`_
|
2014-09-07 04:19:57 +08:00
|
|
|
- `Deploying Flask on Webfaction <http://flask.pocoo.org/snippets/65/>`_
|
|
|
|
- `Deploying Flask on Google App Engine <https://github.com/kamalgill/flask-appengine-template>`_
|
2016-11-17 22:01:30 +08:00
|
|
|
- `Deploying Flask on AWS Elastic Beanstalk <http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create-deploy-python-flask.html>`_
|
2014-09-07 04:19:57 +08:00
|
|
|
- `Sharing your Localhost Server with Localtunnel <http://flask.pocoo.org/snippets/89/>`_
|
2015-11-01 06:17:45 +08:00
|
|
|
- `Deploying on Azure (IIS) <https://azure.microsoft.com/documentation/articles/web-sites-python-configure/>`_
|
2016-11-08 02:10:02 +08:00
|
|
|
- `Deploying on PythonAnywhere <https://help.pythonanywhere.com/pages/Flask/>`_
|
2014-09-07 04:19:57 +08:00
|
|
|
|
|
|
|
Self-hosted options
|
|
|
|
-------------------
|
2012-03-14 03:12:47 +08:00
|
|
|
|
2010-04-19 17:23:44 +08:00
|
|
|
.. toctree::
|
|
|
|
:maxdepth: 2
|
|
|
|
|
|
|
|
mod_wsgi
|
2012-04-01 22:54:27 +08:00
|
|
|
wsgi-standalone
|
2011-06-10 16:38:26 +08:00
|
|
|
uwsgi
|
2012-04-01 22:54:27 +08:00
|
|
|
fastcgi
|
|
|
|
cgi
|