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
In a shared hosting environment, you will want to do this in a file .htaccesslocated inside public/. My looks like this:
.htaccess
public/
PassengerEnabled on PassengerAppRoot /home/myuser/myapp/current RailsEnv production
Source: https://habr.com/ru/post/1793773/More articles:How to color @ (character) in Emacs? - regexIs there a good / widely accepted C ++ template coding convention / standards? - c ++How to stop rollback manipulation - seoShould FROM FROM be before SELECT in Sql? - sqlDisable AutoDim mode in Cocos2d - iphoneJava Sax XML Parser parsing custom "values" in XML tags? - javaUIActivityIndicatorView not showing despite streams - iosClosing Javascript - javascriptShow images from facebook using PHP and graphic photos api - phpкак реализовать Java-эквивалент указателей функций через абстрактные классы - javaAll Articles