4
olezhka
2y

Ok peeps!

A newbie to nodejs and linux VPS (ubuntu) would appreciate any tips you could throw my way on how to push locally developed nodejs webapp to prod in vps server 😊

Thanks!

Comments
  • 0
    so buy vps and deploy. they will give root access so you can apt and npm anything. for cheap ones i recommend time4vps (europe, $3/mo)
  • 0
    @MaxDeepfield I have all of that. Was wondering more on about the methodologies or best practices if how people do the deployments. Docker containers, script samples.
  • 1
    @olezhka that makes sense. so your deployment can be easy as gitlab instance with continous integration scripts. for websites we use simple ftp uploads. node needs to be restarted. if you put gitlab runner on prod machine it can restart nodes for you after successful commit.
  • 0
    @MaxDeepfield thanks, will research that! Currently I push to gitlab, login to vps, pull, etc :D
  • 1
    Install git on both ur local and cloud, from local git push, and from cloud clone the repo and "$npm install" if you have .gitIgnored node modules.
Add Comment