Thursday, September 19, 2019

Forever and Upstart modules for Node.js

In the advanced stages of your application development (usually leading to deployment into production environment), you might want to use the forever (https://npmjs.org/package/forever) module and 

There are two ways to use forever: through the command line or by using forever in your code. Note: If you are using forever programatically you should install forever-monitor.

forever start app.js
Installation

  $ [sudo] npm install forever -g

 $ cd /path/to/your/project
  $ [sudo] npm install forever-monitor