0Pricing
Flask Academy · Lesson

Run Flask Under Gunicorn

Serve the app with multiple workers.

What Gunicorn Is

Gunicorn is a production WSGI server for Python. It runs your Flask app across multiple worker processes so many users can be served at once. 🦄

Install It

Add Gunicorn to your environment with pip. Treat it as a real dependency and pin it in your requirements file.

pip install gunicorn

All lessons in this course

  1. Why Not the Built-in Dev Server
  2. Run Flask Under Gunicorn
  3. Write a Production Dockerfile
  4. Front It with Nginx and Compose
← Back to Flask Academy