flask/docs/deploying/index.rst

42 lines
1.4 KiB
ReStructuredText
Raw Normal View History

.. _deployment:
Deployment Options
==================
2014-09-07 04:19:57 +08:00
Flask's builtin server is lightweight and easy to use, but it has multiple
problems which you don't want to face in production. With default settings, it
can handle only one request at a time, and even if you manage to circumvent
this problem, it has too many scaling problems that would make it unsuitable
for production. **Do not use the builtin development server in production**.
Some of the options available for properly running Flask in production are
documented here.
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>`_
- `Deploying WSGI on dotCloud <http://docs.dotcloud.com/services/python/>`_
with `Flask-specific notes <http://flask.pocoo.org/snippets/48/>`_
- `Deploying Flask on Webfaction <http://flask.pocoo.org/snippets/65/>`_
- `Deploying Flask on Google App Engine <https://github.com/kamalgill/flask-appengine-template>`_
- `Sharing your Localhost Server with Localtunnel <http://flask.pocoo.org/snippets/89/>`_
Self-hosted options
-------------------
2012-03-14 03:12:47 +08:00
.. toctree::
:maxdepth: 2
mod_wsgi
2012-04-01 22:54:27 +08:00
wsgi-standalone
uwsgi
2012-04-01 22:54:27 +08:00
fastcgi
cgi