6 - Process Manager
In this step we will make sure our applications keeps on running on our server using a process manager.
Useful commands
- $
sudo npm i pm2 -g
- $
PORT=5001 pm2 start npm --name hello-world:5001 -- start
// Run "npm start" with port set to 5001 - $
pm2 logs
- $
pm2 monit