DEV Community

Discussion on: How to deploy Python / Flask Web Applications?

Collapse
 
ozzythegiant profile image
Oziel Perez

For those not sure on what to choose for deployment or if this is your first time, I recommend using either Gunicorn, or if you are a polyglot programmer, look into Phusion Passenger so that you can learn how to set up an app server for multiple programming languages. Once you set either one of those up, use your web server of choice (nginx, apache) and reverse proxy into that app server. In my opinion, I think this helps to decouple your infrastructure, which is nice if you ever need to change between web servers, deploy on multiple servers at once, or if you need to deploy multiple web applications on the same web server, having multiple proxies to different back ends.

Not sure if anyone has an easier method though; enlighten me please if you do.