How to set RAILS_ENV to "Production" on a shared DreamHost server?

I have a shared server that the passenger is running on to the server of my Rails application. For some reason, my RAILS_ENV variable seems to be stuck as "Development". How to set it to "Production"? Thanks

+3
source share
1 answer

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

PassengerEnabled on
PassengerAppRoot /home/myuser/myapp/current
RailsEnv production
+6
source

Source: https://habr.com/ru/post/1793773/


All Articles