title: How can I start a Node.js app with forever on a port that I set on the command-line?
body: <p>I am trying to use this command which should work. It does not seem to pass along the environment variable when starts the server which uses Express.js. This is for this Open Source project, <a href="https://github.com/BusTicker/BusTicker-NodeServer" rel="nofollow">Bus Ticker</a>.</p>
  
  <p><code>PORT=8081; forever start ./website/app.js</code></p>
  
  <p>In <code>app.js</code> is has this line so I am expect that I can set the environment variable on that command-line as shown above.</p>
  
  <p><code>app.set('port', process.env.PORT || process.env.npm_package_config_port || 3000);</code></p>