Skip to content

Instantly share code, notes, and snippets.

@rrichards
Created May 9, 2010 17:35
Show Gist options
  • Save rrichards/395292 to your computer and use it in GitHub Desktop.
Save rrichards/395292 to your computer and use it in GitHub Desktop.
#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):
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment