PM2 acts as a supervisor for your application, meaning that it will restart it should it fail.
You can inspect your app using
pm2 list and control it using
pm2 start | stop | restart <app id>.
PM2 can also act as a log aggregator / monitor. In case you need to monitor your app’s
output and error, just use