Answer the question
In order to leave comments, you need to log in
How to properly deploy an application on pm2?
Good afternoon! We are actively considering pm2. Now it is not entirely clear how to deploy to the server. At the moment we are using several single core servers. We roll updates in turn to each server. At the same time, the balancer redirects people to working servers (while the current one is rebooting with an update).
When using PM2, we want to keep everything on one multi-core server. But we still don’t understand how to automate the deployment. Need help! :)
PS: first we generate a bundle, which is then uploaded to the server and unpacked. After that, it can be started simply by typing npm start from the console.
Answer the question
In order to leave comments, you need to log in
For deployment, use jenkins. After uploading the bundle, unpack it remotely, reload the application via pm2.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question