In the previous post titled Create a Simple Flask App on EC2, we create a simple Hello World Flask app and deployed it on an EC2 instance. On running our app, we say a warning message that read –
WARNING: This is a development server. Do not use it in a production deployment.
Use a production WSGI server instead.
What this is telling us is that, while Flask has an inbuilt web server and serves our purpose for development, it is not suitable for production. In this post, we will further our previous post, and use WSGI server to talk to our Flask app and NGINX to handle the traffic between WSGI server and our web browser.
Continue reading “Run a Flask App with WSGI and NGINX on EC2”