title: nodejs forever : How to run my npm application
body: <p>Right now i am runnign my nodejs application as <code>npm start</code>. i want to run it in background. I found <code>forever</code> package for this but dont know how can i run a application that i usually run as <code>npm start</code>. So how can i run it using <code>forever</code> ?</p>
  
  <p>I follow <a href="https://stackoverflow.com/questions/26773936/forever-with-npm-start-and-environment-variable">this SO</a> but getting this error:</p>
  
  <pre><code>ENVIRONMENT=production forever start app.js
  warn:    --minUptime not set. Defaulting to: 1000ms
  warn:    --spinSleepTime not set. Your script will exit if it does not stay up for at least 1000ms
  info:    Forever processing file: app.js
  </code></pre>
  
  <p>apart of this Is there any other better way to run nodejs in background ?</p>