Simplest way to deploy a Flask app

Hi !

I wrote a simple Flask app using flask and sqlalchemy which run pretty well on localhost but I would like to deploy it. The problem is that I don't have any clue on how to deploy it..

Could somebody explain me the simplest way to deploy my Flask app?

Thanks !

I'm on Windows

Did you find this post useful? Show some love!

I had the same problem when I deployed my first Flask app. To approach the problem, I created a very simple small application, and worked through the kinks until I got it deployed in a way I was happy with. Only then did I move to deploying my full application.

I documented the process in this blog post. Perhaps it will be some help.

You will need a WSGI server. Have a look at this tutorial. It shows you how to deploy a flask app using Nginx and uwsgi.

Flask's own documentation give you a few deployment options.

You can try Heroku's free plan:


Hey there, we see you aren't signed in. (Yes you, the reader. This is a fake comment.)

Please consider creating an account on It literally takes a few seconds and we'd appreciate the support so much. ❤️

Plus, no fake comments when you're signed in. 🙃

You might also take a look at Netlify. It's a well documented tool for deploying side projects quickly and even beyond:

Classic DEV Post from Jun 20

What are some good questions for a "State of the Web" survey?

We're planning on putting out a little survey about the web. We have a few questions in mind, but we'd love a few more.

Follow @ben to see more of their posts in your feed. is now open source!
View Announcement Post View GitHub Repo
Pierre Bouillon
Developer, student, tech enthusiast and coffee junky. I would be glad to speak with you!
More from @pbouillon
Detect keyup pressed in terminal
#python #help
Why all this hate about Python?
#discuss #python
Trending on
A simple way to anonymize data with Python and Pandas
#python #pandas #datascience #machinelearning
Adventures of a Hobbyist ~ Part Three
#help #node #learning #opensource
The distraction's killer
#beginners #help #career
How to deploy a Python app to Heroku
#heroku #python #beginners
Which functional language would you recommend for a web app (SPA)?
#help #functional
Timsort: Fastest sorting algorithm for real world problems.
#python #java #programming #beginners
My Favorite Free Resources for New Programmers
#beginners #learntocode #javascript #python
What are your favorite terminal apps or scripts, to use for productivity?
#discuss #python #bash #productivity