pm2 – Express.js / Node.js deployment options
I have an pretty simple API to build and am considering using Express.js which I have not used before. So far like like what I have seen in the little bit that I have built. However I am having a hard time finding information on the best way(s) to deploy it to our single production server. So far I have found:
pm2-windows-service
pm2-installer
NSSM
Servy
The first 3 all seem like pretty stale projects, are they still in common use?
From what I know they all are supposed to do about the same thing. Wrap the PM2 process in a windows service so it will run on boot up, even if you are not logged on. My second question is what does the service do other than start the PM2 process? Is it basically done at that point? I read about it restarting in case of failure, but I thought PM2 itself was supposed to handle that.
Are there other deployment options? I saw docker mentioned, but is it a solution to startup my API or just something that could be used alongside one of the startup options above?
Read more here: Source link
