Deploying Next.js self hosted app (express) to Hostinger KVM1 vps. Stack and set up questions?
Answered
InkwellArchitect posted this in #help-forum
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!
Thanks a lot!
Answered by Anay-208 | Ping in replies
If you don't have any other questions, can you mark solution
36 Replies
Docker, I don't think its needed if you're using Github actions, but if you're deploying a container, then its needed
@Anay-208 | Ping in replies 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.
@InkwellArchitect 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.
if you've it setup, you can use it.
Any other Questions?
Any other Questions?
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
you can also use managed platforms like vercel
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
@InkwellArchitect 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
You could easily self host nextjs anytime in the future
If you want to do it urgently without downtime, use Vercel for now, just for a month until you learn devops
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
I have my own vercel premium account I can host it on
and then just transfer it
but the seo might be weird idk how that works
@InkwellArchitect but the seo might be weird idk how that works
It won’t make any difference on Seo
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
@Anay-208 | Ping in replies It won’t make any difference on Seo
Unless like there is much difference in speed
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
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
- 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
@InkwellArchitect but i can lead it that way
If you don't have any other questions, can you mark solution
Answer
@InkwellArchitect can you mark solution if you don't have any other qs