title: Using ENV values in ember-cli app during build
body: <p>I would like to set my RESTAdapter host based on the build environment.</p>
  
  <p>I assume the value can be stored in <code>config/environment.js</code> like this:</p>
  
  <pre class="lang-js prettyprint-override"><code>if (environment === 'development') {
    ENV.API_ENDPOINT = 'http://localhost:8080';
  }
  
  if (environment === 'production') {
    ENV.API_ENDPOINT = 'http://api.myserver.com';
  }
  </code></pre>
  
  <p>But I am unsure how to insert the information into <code>adapter/application.js</code> during the build process.</p>