title: setting NODE_ENV for node.js + expressjs application as a daemon under ubuntu
body: <p>i got the daemon working alright with these instructions:
  <a href="http://kevin.vanzonneveld.net/techblog/article/run_nodejs_as_a_service_on_ubuntu_karmic/">http://kevin.vanzonneveld.net/techblog/article/run_nodejs_as_a_service_on_ubuntu_karmic/</a></p>
  
  <p>but because this starts the application in DEVELOPMENT mode, the log file gets spammed with socket.io debug logs.</p>
  
  <p>i tried setting the NODE_ENV to production in the upstart-conf-file but had no success.</p>
  
  <pre><code>script
      export HOME="/root"
      export NODE_ENV=production
  
      exec /usr/local/bin/node /where/yourprogram.js &gt;&gt; /var/log/node.log 2&gt;&amp;1
  end script
  </code></pre>
  
  <p>didn't work.</p>