title: How to Set RAILS_ENV Permanently
body: <p>I am trying to deploy my rails app to my production server.  However my app won't use any of my production config.</p>
  
  <p>I am manually setting RAILS_ENV using:</p>
  
  <p>export RAILS_ENV=production</p>
  
  <p>Then when I run echo $RAILS_ENV I am returned production but only for that bash session.  I have also added export RAILS_ENV=production in my .bashrc file, however still when I echo rails_env it returns blank.  This means that when my rails app runs it uses development config.</p>
  
  <p>How can I set this so that my rails app will use my production config?  Preferably so that it is permanent so that I don't have to keep setting it.</p>
  
  <p>Thanks!</p>