r/flask 13d ago

Ask r/Flask Deploy Flask App

Hi everyone, I'm new to web app development and have created a Flask-based application that requests data from a PostgreSQL database, which is then updated on a Vanilla JS-based frontend.

Currently, the application is running on my local Windows environment, and want to publish it so it can be accessed by everyone on the internet. I'm finding it challenging to choose the right path and tools.

My company has a Windows server on Azure. Should deploy the app on an server, or is there a simpler, better approach? Any documentation or tutorials on the recommended deployment path would be very helpful.

5 Upvotes

13 comments sorted by

5

u/Little-Chemical5006 13d ago

My company have an nginx server setup and I found it pretty easy to incorporate my flask app with it using gunicorn. Just search gunicorn, nginx, flask on google and you should get a couple detail guide related to this approach

1

u/Haunting_Wind1000 10d ago

I think gunicorn is not supported on Windows, something like waitress could be used if looking to deploy on Windows.

3

u/No-Anywhere6154 13d ago

Take a look at seenode — it’s hosting for Flask apps.

2

u/WinQuick6677 13d ago

I'm not a professional developer, but found digital ocean app platform really intuitive and easy to setup.

1

u/caspii2 13d ago

For simple deployments I recommend DigitalOcean or Heroku. Both include hosted Postgres and are battle tested

1

u/[deleted] 13d ago

[deleted]

1

u/Born-Substance3953 13d ago

What do you mean by general deployment?

2

u/SupahCraig 13d ago

GENERAL DEPLOYMENT!

<salutes>

1

u/[deleted] 13d ago

[deleted]

1

u/Fun-Palpitation81 13d ago

I've self hosted, hosted through AWS, and hosted through Heroku.

Heroku was by far the simplest deployment - I linked my github and basically was as easy as git push origin master

1

u/Miserable_Trifle8702 12d ago

I deployed it at shared hosting on cpanel

1

u/jandrewbean94 11d ago

I host on pythonanywhere, free to start, cheap to upgrade, and you can host MySQL or Postgres for a small increase