PM2

علی ذوالفقار
1399/05/06 17:14:12 (735)
  
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:
                http://pm2.io/

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