How to deplot app on pm2?
Good day! We are actively looking at pm2. Now it is not quite clear how to perform a deploy to your server. At the moment we use several single-core servers. Updates are rolled at a time to each server. At the same time, the load balancer redirects people to work server (until the current is reloaded with update).
When using PM2 I want to keep everything on one multi-core servers. But how to automate deployment don't yet understand. Need help! :)
P. S: first the generated bundle, which is then poured on the serv and unpack. After that it can be run just by typing npm start from the console.
3 answers
Use jenkins for deployment. After potting the bundle, unpack it remotely, restart the app using pm2.
Find more questions by tags Node.js