6 - Process Manager

In this step we will make sure our applications keeps on running on our server using a process manager.

‌

Useful commands

Install PM2

‌‌‌‌‌

Run "npm start" with port set to 5001

‌‌‌‌‌

Show PM2 logs with 200 lines

‌‌‌‌‌

Monitoring view

‌‌‌‌‌

The code used in the application. (app.js)

‌‌‌‌‌