---

Deploying your python web applications on Linux with Gunicorn and Nginx

Flask is a web framework for python, Flask tackles Routing, HTML template rendering, Sessions etc

If you are building web applications on Linux then I highly recommend using Flask, here’s how quickly you can build an app with it on Linux. The inbuilt server with Flask is good for development, but sooner or later you will want to serve hundreds or even thousands of request, hence in this post I will describe how you can deploy your flask application on a production Linux servver with Gunicorn and Nginx. Gunicorn is a WSGI HTTP server written in Python and used to serve Python files, it uses a pre-fork worker model in which it forks worker processes to handle requests. Although Gunicorn can serve as a standalone server it is recommended to use Nginx as a frontend and reverse proxy Python requests to Gunicorn.

Get the Free Newsletter!

Subscribe to Developer Insider for top news, trends, & analysis