title: Getting 502 error in browser for a NodeJS app run with Forever
body: <p>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 <code>--prod</code> param:</p>
  
  <p><code>sails console</code>,
  <code>sails lift</code>,
  <code>node app.js</code></p>
  
  <p>However, when I try to run the app with forever using <code>forever app.js</code> I get a 502 error, as if nodejs server isn't even running. When I run <code>forever list</code> I can see app.js listed among running processes.</p>
  
  <p>How can I have my app run with forever?</p>