All Questions

Coding

Where do you deploy your backend apps?

author Dobroslav Radosavljevič

Reply
27 Answers

I deploy on Hetzner dedicated. I’m a big believer in staying away from cloud hosting until you’re big enough to need it.

writen by Iain Cambridge

Depends. Right now on hetzner cloud (which essentially is some kind of VPS)

writen by Benedikt

Didn’t know about this one. How hard is it to deploy Node.js app there?

writen by Dobroslav Radosavljevič

Well. You could just create an instance with a new user, deploy your app and start it. Although I would use a reverse proxy and systemd or similar to schedule (re)starting the app. You’re basically doing your infrastructure engineering yourself here

writen by Benedikt

If you just want to get that app started without caring about infrastructure you should probably use sth. like render or vercel

writen by Benedikt

Problem is, I want to spend $5000 credits on Azure, which I have. But Azure is so freaking trash 😊 Everything there is overcomplicated.

writen by Dobroslav Radosavljevič

It’s Microsoft (scnr )

writen by Benedikt

Vercel does not support Node.js apps from what I know.

writen by Dobroslav Radosavljevič

It does. At least with frameworks like react

writen by Benedikt

It supports Next.js as serverless functions, but I use NestJS as my backend.

writen by Dobroslav Radosavljevič

Do you have a time limit on the 5k credit ?

writen by Suvojit Manna

Azure VMs are pretty good, and have good support, I’ve been using this for a while to manage large ML deployments. Other cloud stuff is massively complicated.

writen by Suvojit Manna

I was trying to deploy my NestJS app to Azure App Service, but deploy was taking 1 hour and then failed lol.

writen by Dobroslav Radosavljevič

Finally deployed to Azure omg Now need to setup also DB

writen by Dobroslav Radosavljevič

DId you do it by hand or use terraform?

writen by Iain Cambridge

Never used terraform in my life.

writen by Dobroslav Radosavljevič

I created app service, connected it to my github account and project, configured startup command and waited a long long time for build and deployment

writen by Dobroslav Radosavljevič

It’s cool once you have everything set up but a pain in the ass at first.

writen by Iain Cambridge

I figured out, that I can optimize installing node_modules using ‘npm ci’ instead of ‘npm i’, so I’m gonna do that now.

writen by Dobroslav Radosavljevič

I use digital ocean VMs, but having my own deployment system etc is a bit of a pain sometimes

writen by Justyna Ilczuk

Justyna Ilczuk what are you using for deployments?

writen by Iain Cambridge

I’m using ansible to clone my repo into a separate folder and point a symlink to the new folder and restart nginx/php-fpm. Pretty simple but works.

writen by Iain Cambridge

And it’s good for rollbacks as well. Right now I’m using rsync 😊 So I’d have to do the rollback via git and redeploy. For the small apps it’s ok. But should be changed in the future.

writen by Benedikt

Iain Cambridge docker and bash scripts, it’s great (I mean horrible)

writen by Justyna Ilczuk

I shared this question on IH and got some extra options that might interest you: https://www.indiehackers.com/post/where-do-you-deploy-your-backend-apps-8fb469d1c5

writen by Tiago Ferreira

I saw Aseem using render for his products. It looked good with it’s CI/CD features.

writen by Suvojit Manna

Do you want to ask a question?


Related Questions