forked from orbit-oss/flask
Whilst it has been possible to serve via an ASGI server for a while (using WSGI to ASGI middleware/adapters) it hasn't added much. Now though it makes sense to recommend the asgiref adapter as it integrates with the same event loop used for async route handlers etc...
34 lines
1.2 KiB
ReStructuredText
34 lines
1.2 KiB
ReStructuredText
Deployment Options
|
|
==================
|
|
|
|
While lightweight and easy to use, **Flask's built-in server is not suitable
|
|
for production** as it doesn't scale well. 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 Flask on Google App Engine <https://cloud.google.com/appengine/docs/standard/python3/runtime>`_
|
|
- `Deploying Flask on AWS Elastic Beanstalk <https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create-deploy-python-flask.html>`_
|
|
- `Deploying on Azure (IIS) <https://docs.microsoft.com/en-us/azure/app-service/containers/how-to-configure-python>`_
|
|
- `Deploying on PythonAnywhere <https://help.pythonanywhere.com/pages/Flask/>`_
|
|
|
|
Self-hosted options
|
|
-------------------
|
|
|
|
.. toctree::
|
|
:maxdepth: 2
|
|
|
|
wsgi-standalone
|
|
uwsgi
|
|
mod_wsgi
|
|
fastcgi
|
|
cgi
|
|
asgi
|