title: Rails removes port from local environment variable?
body: <p>I have a very strange problem with my rails 4.1.0 application.</p>
  
  <p>Inside <code>local_env.yml</code> I have a variable declared as:</p>
  
  <pre><code>API_URL: 'http://api.myapp.com:3000'
  </code></pre>
  
  <p>I use this variable in the javascript file <code>app_ready.js.erb</code> like so:</p>
  
  <pre><code>var apiHost = '&lt;%= ENV["API_URL"] %&gt;'
  </code></pre>
  
  <p>But for some reason when I call the page using this script and inspect the <code>app_ready.js</code> file I can see the line got converted to <code>var apiHost = 'http://api.myapp.com'</code> without the port <code>:3000</code>. Does anybody know what is happening here?</p>
  
  <p><strong>Edit:</strong></p>
  
  <p>Is there some kind of a server sided cache maybe? Because at some point I might have declared <code>API_URL</code> without the port and changed it later. It can't be in the browser cache, because I've actually cleared it and even tried with different browsers with the same results.</p>