Run sails with forever.
npm install forever -g
Assuming you already have
sails installed and have created an app, cd to the root directory of your app.
.foreverignore, using nano:
List files to be ignored by
forever on relaod:
NOTE: If you installed
sails globally, you need to make it available into your Sails application
sails lift, you use:
forever -w start app.js
It will run in the background, to see
forever running apps:
To stop the
forever stop app.js
NOTE: If you have multiple running applications with the same name, you will have to address them by it's
data: uid command script forever pid logfile uptime data:  UAGg /usr/local/bin/node app.js 29221 29243 /Users/goliatone/.forever/UAGg.log 0:0:0:1.653
The index is the number between the square brackets.