展開の選択肢(Deployment Options) Deployment Options¶
軽量で簡単に使用できますが、規模の拡大・縮小をうまくはできないため、Flaskの組み込みサーバは本番環境のために適したものではありません。本番環境でうまくFlaskを実行するために使用可能な選択肢のいくつかが、ここで説明されています。 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.
もしもここのリストにはないWSGIサーバへFlaskアプリケーションをデプロイしたい場合、WSGI appの使い方に関するそのサーバのドキュメントを調べてください。Flask
アプリケーションのオブジェクトは実際にWSGIアプリケーションであることを、まずは思い出してください。
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) Hosted options¶
Heroku上へのFlaskのデプロイ `Deploying Flask on Heroku <https://devcenter.heroku.com/articles/getting-started-with-python>`_
Google App Engine上へのFlaskのデプロイ `Deploying Flask on Google App Engine <https://cloud.google.com/appengine/docs/standard/python3/runtime>`_
Google Cloud Run上へのFlaskのデプロイ `Deploying Flask on Google Cloud Run <https://cloud.google.com/run/docs/quickstarts/build-and-deploy/python>`_
AWS Elastic Beanstalk上へのFlaskのデプロイ `Deploying Flask on AWS Elastic Beanstalk <https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create-deploy-python-flask.html>`_
Azure (IIS) 上へのデプロイ `Deploying on Azure (IIS) <https://docs.microsoft.com/en-us/azure/app-service/containers/how-to-configure-python>`_
PythonAnywhere上へのデプロイ `Deploying on PythonAnywhere <https://help.pythonanywhere.com/pages/Flask/>`_