3

I have a shared server running passenger to server my Rails app. For some reason my RAILS_ENV variable seems to be stuck as 'Development'. How do I set it to 'Production'? Thanks

aren55555
  • 1,677
  • 1
  • 20
  • 34

1 Answers1

6

In a shared hosting environment, you will want to do this in a .htaccess file, placed inside public/. Mine looks like this:

PassengerEnabled on
PassengerAppRoot /home/myuser/myapp/current
RailsEnv production
Paul Schreiber
  • 12,531
  • 4
  • 41
  • 63