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.
July 8th 19 at 11:33
3 answers
July 8th 19 at 11:35
Use jenkins for deployment. After potting the bundle, unpack it remotely, restart the app using pm2.
July 8th 19 at 11:37
July 8th 19 at 11:39
I know that the topic is ancient.. Just leave a link
How to make react and deploy the application using PM2

Find more questions by tags Node.js