#Deploying Next.js self hosted app (express) to Hostinger KVM1 vps. Stack and set up questions?

1 messages · Page 1 of 1 (latest)

iron helm
#

I want to have a fully functional CI/CD, with a dual way tunnel between docker and git that update each other. I also want main to update production live. Right now I'm trting to figure out if my best bet is Docker, github actions, and ngnix or if I'm overcomplicating it.Any help? This site doesn't explictily need these things for launch but I'm not far off and it'll safe me a ton of time on maintence. My main qquestion is whether to use Docker or not.

Thanks a lot!

regal tuskBOT
#

🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord

🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize

✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)

small yoke
#

Docker, I don't think its needed if you're using Github actions, but if you're deploying a container, then its needed

iron helm
# small yoke I use github actions

I got you, I have the dockerfile set up and building and running properly as well as the compose file. The thing is I have arelatively limited space of memory and actions should take up less space. Compose wil take care of the later need for a db though.

small yoke
iron helm
#

No not nessacarily, this is my first solo deploy I'm 100% responsible for and it's happening tonight. Just nervous but htis helps

#

but I'll never learn devops if I don't do this and I want to

small yoke
#

you can also use managed platforms like vercel

iron helm
#

I understand, I just think for this particular use case and client it was probably a bettter option to go with the VPS especially because vendor could be a problem for her

#

in the future

#

aand i kind of wanna learn the really cool automated stuff. Like I know github and git and even actions to an extent. I wanna eventually learn puppet and ansible scripting stuff lke that would be cool to do awesome deployments

#

kubernetes obvioulsy in this context but that's out of scope

#

wi wanna stay full-stack

small yoke
#

If you want to do it urgently without downtime, use Vercel for now, just for a month until you learn devops

iron helm
#

true I doublt my client would care too much as long as the site is up and vercel will be free

#

wouldn't

#

it's like a 4.99 waste for one month

iron helm
#

I have my own vercel premium account I can host it on

small yoke
iron helm
#

and then just transfer it

#

but the seo might be weird idk how that works

small yoke
iron helm
#

true, I mean I've set up sucsessful laravel lamp stack apps before and the ngnix stack too

#

but this is a little bit more than just set up the server with ci/cd

small yoke
iron helm
#

nah it's a nextjs site and if it maeks that much differnece in speed then by hostingetr

#

well not my choice

#

lol

#

but i can lead it that way

#

alright now i'm just aedhding out and procrasinating and i need to work. Peace

#

thanks for the help

small yoke
#

Summary:

  • You can use CI/CD In Github actions maybe using docker and push it to VPS
  • Initially, you can use Vercel Pro Plan so you can learn DevOps until then to avoid downtime
  • You can then migrate on VPS
small yoke
small yoke
#

@iron helm can you mark solution if you don't have any other qs