title: PM2 + Meteor Environment Setup
body: <p>I am trying to setup Meteor to use pm2 (<a href="https://github.com/Unitech/pm2">https://github.com/Unitech/pm2</a>) instead of forever as the node process monitor.  I have had no luck in getting the environment variables that a Meteor application needs to be seen by the pm2 process.</p>
  
  <p>Here is my process:</p>
  
  <pre><code>export MONGO_URL="mongodb://localhost:27017/meteor"
  export PORT=4000
  export ROOT_URL="https://beta.example.com/"
  pm2 start main.js --name MyMeteorApp
  </code></pre>
  
  <p>In the error log from pm2 I see that my Meteor application is complaining that it cannot find <code>MONGO_URL</code>.</p>
  
  <p>Is there a specific way that I need to do the exports in order to work with pm2?</p>