Deployment and Management of MonadLisa with PM2
Deployment and Management of MonadLisa with PM2
This guide would detail steps for :
installing PM2 (if not already installed),
running your monadLisa with PM2,
setting it up to restart automatically on server reboot.
- Install PM2 globally if it's not already installed:
npm install pm2 -g
- Navigate to your MonadLisa application directory and start it with PM2:
pm2 start index.js --name "monadLisa"
- Ensure PM2 and your application auto-start at server reboot:
pm2 startup
pm2 save
- Commands for monitoring and logs:
pm2 status
pm2 logs monadLisa