DEV Community

Discussion on: Ready to deploy! Vue + Flask, but where to deploy it to?

Collapse
 
danroc profile image
Daniel da Rocha

Alright, after a while building up everything on Heroku, I have come to realize its limitations and why DigitalOcean might be a more interesting alternative, despite being more complex.

Some considerations:

  • Heroku does have free tiers but their limitations can become annoying. One of them is the sleeping app issue (which has workarounds, yes, but annoying nonetheless). The other is the free tier of Postgresql with a maximum of 10,000 lines, which in the beginning sounded like a lot, but now I am almost reaching that limit!
  • And that's where things start to get expensive. As I have to upgrade each app separately, plus the Postgresql upgrade, I am looking at a bill of around 20$/month just to go up to their most basic free level

Then I took a second look on DO, and I realized I only needed one droplet (initially), in which I could run both the Flask API and the Vue app and manage my own Postgresql db without Heroku's limits. And that would all cost me 5$/month for the cheapest droplet.

So I am now in the process of setting up a droplet on DO to try and run my apps from there.

However, some questions:

  • Will I really be able to run all my apps there? And maybe even in the future a Graphql server (in case I want to ditch my FlaskRESTful api sometime in the future)?

  • How far will the cheapest droplet take me??

Anyway, just thought I'd share!
Best,
Daniel