I’m on a shared host and need to use my own version of Ruby and keep the gems installed in my home directory as well.
In my Rails 2 app I had this in environment.rb to use my own gems:
if ENV['RAILS_ENV'] == 'production'
ENV['HOME'] = "/home/matt"
ENV['GEM_HOME'] = "/home/matt/.gems"
ENV['GEM_PATH'] = "/home/matt/.gems"
end
Is it a good idea to do the same in Rails 3? Or is there any better way?
Is it possible to configure the application to use my local version of Ruby when it’s running on Apache/Passenger?
I solved it by putting these setting at the top of
config.ruand it works fine.