علی ذوالفقار
1399/05/06 17:14:12 (76)
PM2 is a Production Process Manager for Node.js applications
with a built-in Load Balancer.

                Start and Daemonize any application:
                $ pm2 start app.js
                $ pm2 start app.js -n MyAppName

                Load Balance 4 instances of api.js:
                $ pm2 start api.js -i 4

                Monitor in production:
                $ pm2 monitor

                Make pm2 auto-boot at server restart:
                $ pm2 startup

                To go further checkout:

                pm2 restart 0 --watch --ignore-watch db/*