title: Node.js port issue on Heroku cedar stack
body: <p>I'm running a basic Express app in Node.js and trying to deploy to Heroku. The app works fine locally and I believe my setup with Heroku has gone well up until starting the server where i get the following error:</p>
  
  <pre><code>2011-09-21T16:42:36+00:00 heroku[web.1]: State changed from created to starting
  2011-09-21T16:42:39+00:00 app[web.1]: Express server listening on port 3000 in production mode
  2011-09-21T16:42:40+00:00 heroku[web.1]: Error R11 (Bad bind) -&gt; Process bound to port 3000, should be 12810 (see environment variable PORT)
  2011-09-21T16:42:40+00:00 heroku[web.1]: Stopping process with SIGKILL
  2011-09-21T16:42:40+00:00 heroku[web.1]: Process exited
  </code></pre>
  
  <p>this is currently all i have in my app.js</p>
  
  <pre><code>app.listen(3000);
  </code></pre>
  
  <p>I did also run this as mentioned on Heroku's getting started.</p>
  
  <pre><code>$ heroku config:add NODE_ENV=production
  Adding config vars:
  NODE_ENV =&gt; production
  </code></pre>
  
  <p>I believe I just need to set up the port for production?  Thanks.</p>