I am trying to put a rails app I development into production. When I
alter my apache config like so:
SetEnv RAILS_ENV production
(used to be SetEnv RAILS_ENV development)
and reload apache, the site still stays in development mode. I do the
following on my homepage to check what environment I'm using:
<%= RAILS_ENV %>
However, if I add this line to my environment.rb:
ENV['RAILS_ENV'] ||= 'production'
The application successfully switches into production mode.
I do have complete control over my server, so I'm trying to "properly"
put the application in production mode, vs. editing the environment.rb
Any suggestions? Let me know if posting more code / commands would be