title: How to pass API keys in environment variables to Ember CLI using process.env?
body: <p>How do I pass environment variables from bashrc to Ember CLI. I imagine a situation where you need stripe api keys or pusher api-keys and you have them in your environment variables in bashrc. How do you pass the api-keys to Ember CLI. </p>
  
  <p>I tried using Node.js <code>process.env</code> in both the <code>brocfile.js</code> and <code>environment.js</code>, but when I try to access it in the Ember JS controller, the property is null.</p>
  
  <p>In my <code>environment.js</code> file I added,</p>
  
  
  
  <pre><code>APP: { apiKey: process.env.KEY }
  </code></pre>
  
  <p>In My Ember JS controller I tried accessing it with:</p>
  
  
  
  <pre><code>import config from  '../config/environment'; 
  </code></pre>
  
  <p>And setting the controller property <code>lkey</code> as shown below, which didn't work:</p>
  
  
  
  <pre><code>lkey: config.App.KEY
  </code></pre>
  
  <p>Next in my <code>brocfile.js</code>, I added:</p>
  
  <pre><code>var limaKey = process.env.Key; 
  var app = new EmberApp({key: limaKey});
  </code></pre>
  
  <p>This still didn't work.</p>