pm2 setup code example
Example 1: install pm2
npm install pm2 -g
Example 2: pm2 --run
pm2 start npm --name AppName -- run start-npm-dev
Example 3: pm2 status
pm2 status <processname>
Example 4: pm2 install
$ pm2 ecosystem
Example 5: pm2 install
$ pm2 [list|ls|status]
Example 6: pm2 install
$ pm2 logs --lines 200