Forever.js command examples

Forever.js is an interesting tool for running node projects continuously.

Install forever.js with the following command:

  • sudo npm install forever -g

Self explanatory commands:

# List the forever.js processes
forever listCode language: PHP (php)
# Stop all forever.js processes
forever stopallCode language: CSS (css)
# Start a server
forever start -o out.log -e err.log app.jsCode language: CSS (css)