#rails console in my project configured with .rvmrc
# sanity check
ruby-1.8.7-p249 > %x{"source ~/.zshrc"}
sh: source ~/.zshrc: No such file or directory
=> ""
ruby-1.8.7-p249 > %x{"source ~/.zshrc ; rvm 1.8.7-p249%rails3 ; rvm gemdir"}
sh: source ~/.zshrc ; rvm 1.8.7-p249%rails3 ; rvm gemdir: No such file or directory
=> ""
# setting in config.ru
ENV["GEM_HOME"]=%x{"source ~/.zshrc ; rvm 1.8.7-p249%rails3 ; rvm gemdir"}.strip
# passenger log error
sh: source ~/.zshrc ; rvm 1.8.7-p249%rails3 ; rvm gemdir: No such file or directory
*** Exception PhusionPassenger::UnknownError in PhusionPassenger::Rack::ApplicationSpawner (Could not find gem 'rails (= 3.0.0.beta, runtime)' in any of the sources. (Bundler::GemNotFound)) (process 2432):