Why Not the Built-in Dev Server
Production needs a real WSGI server.
The Server That Got You Here
When you ran flask run, Flask started a tiny built-in server. It was perfect for learning, but it was never meant to face real users. 🚦
It Says So Itself
Notice the warning Flask prints on startup. It literally tells you this is a development server and not for production traffic.
WARNING: This is a development server.
Do not use it in a production deployment.All lessons in this course
- Why Not the Built-in Dev Server
- Run Flask Under Gunicorn
- Write a Production Dockerfile
- Front It with Nginx and Compose