Saturday, 18 July 2020

Tips for running Node on a VPS

So far I've been running Node in Heroku and through Docker on multiple cloud providers but for reasons I now need to run a Node app on a VPS.Is anyone here running a production Node app on a VPS?From what I've read, it seems it basically boils down to:Installing Nginx to use as a reverse proxyInstalling Node and PM2Git clone your application and run it through PM2 as a system processAs I understand it, PM2 will keep restarting the Node app if it crashes. I imagine it shouldn't be too difficult to deploy with a git push to a branch or something.What about zero downtime deploys?What about security?Are you using a different setup?

Submitted July 18, 2020 at 07:13PM by generousfootwear

No comments:

Post a Comment