Search⌘ K
AI Features

Gunicorn

Understand how to use Gunicorn to deploy Flask applications by installing it with PIP, starting the server, and verifying it serves JSON responses. Learn key configuration options for tuning performance.

What is Gunicorn?

Gunicorn is a very popular WSGI container for Flask applications. As our Flask application gets up and running using Gunicorn, it performs the role of an application server and responds to requests for dynamic content.

Let’s switch back over to our Flask REST application and see how we can setup Gunicorn.


Installing Gunicorn

Conveniently for us, Gunicorn is PIP installable. (Note that this is for Linux only):

 ...