title: Set SECRET_KEY_BASE in production using a .env file
body: <p>I've a <code>.env</code> file in my root folder in production. This file defines <code>SECRET_KEY_BASE</code> which is used in <code>config/secrets.yml</code>. The problem is that I can't manage to load my <code>.env</code> file before my <code>config/secrets.yml</code>. I've tried using the <code>dotenv</code> gem without success.</p>
  
  <p>Any idea on how todo this in production?</p>
  
  <p>I don't want to set it globally for my <code>webmaster</code> user on the production server. The <code>SECRET_KEY_BASE</code> value should only be accessable for by application.</p>
  
  <p>I'm using rails 4.1.</p>