Deploying Flask Applications
When the development of a Flask application is over, you can always decide to deploy it somewhere outside Werkzeug’s HTTP server. The final application needs a production server that is fast and reliable, with minimal or no potential security risks, configurable, and easy to manage. Instead of utilizing the built-in Werkzeug server, the product needs a non-development server not for development, debugging, or testing but for running the software product. Flask deployment requires a stable and independent Python server or a hosting platform.
This chapter will focus on different approaches, options, and procedures for deploying Flask applications to production servers suited for the product’s scope, environment, and objectives.
The following topics will be covered in this chapter:
- Running the application on Gunicorn and uWSGI
- Running the application on Uvicorn
- Deploying the application to the Apache HTTP Server
- Deploying...