'How to know when PM2 deploy status changes to error

Is there a way to notify developer when the PM2 status of an application is showing error. ?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source