I have a rails application running with bundler under passenger 5.0.30
I just moved from RH to Ubuntu and my application is not starting because there is a GEM_HOME in the environment that points to gems that were compiled on RH.
For the life of me I can't figure out where this GEM_HOME is being set.
I did a "bundle install --deployment" to ensure the application would only reference local gems but the
config.ru fails before bundler is brought into the mix due to the bad GEM_HOME.
I added the following to my apache configuration inside the a Directory directive.
UnsetEnv GEM_HOME
This had no impact.
Should this work? Should I set it in VirtualHost directive instead?
Since it is using PassengerUserSwitching should it honor what I have in my .cshrc? (yes, i'm using csh) or does passenger always invoke the bash shell?
Or is passenger setting GEM_HOME based on where PassengerRuby is pointing?
My PassengerRuby is
PassengerRuby /opt/ruby2/bin/ruby
and the GEM_HOME is
GEM_HOME = /in a totally different directory/ruby/2.1.0
At one point I did set GEM_HOME in my .cshrc but I removed it and restarted apache.
So i'm stumped. What is setting GEM_HOME?
(as a side not the front of my PATH now begins with
/in a totally different directory/ruby/2.1.0/bin
help!!!
Thanks
Tony