Node.js tips, forever monitoring status

If you using forever to ensuring that a given script runs continuously you probably know that there is no option to check if specific app is already running or not.

simplest solution we are using is simply to grep the 'forever list'

>> forever list | grep $APP_FILE | wc -l | sed -e 's/1/App Running/' | sed -e 's/0/App not started/'

Additional tip: When starting monitoring with forever use full path to your server.js file.

Thank you for your interest!

We will contact you as soon as possible.

Send us a message

Oops, something went wrong
Please try again or contact us by email at info@tikalk.com