A quick collection of building and monitoring commands in Linux.
To get ExpressJS started under pm2:
/home/ec2-user/expressjs/bin
pm2 start --name expressjs www
PM2
List the processes:
pm2 list
NPM build, start process
npm ci
npm test --if-present
npm run build
npm run start
pm2 start npm -- start
pm2 start --name AppName npm -- start
Restart the processes:
pm2 restart all
pm2 restart <app name>
Top comments (0)