I have a SailsJS app set up on a Webfaction server. Everything works nicely (site can be accessed through browser, console works) when I run the app via any of the following commands, with and without the --prod
param:
sails console
,
sails lift
,
node app.js
However, when I try to run the app with forever using forever app.js
I get a 502 error, as if nodejs server isn't even running. When I run forever list
I can see app.js listed among running processes.
How can I have my app run with forever?