I'm having a really strange issue. On my remote server (which is a Max OSX Server), I have Ruby 1.9.3 installed via RVM. When I type ruby -v
, I get
ruby 1.9.3p448 (2013-06-27 revision 41675) [x86_64-darwin12.3.0]
When I type in which bundle
, I get
/Users/moby/.rvm/gems/ruby-1.9.3-p448/bin/bundle
And if I do bundle install
in my Rails project, it succeeds without any errors.
However, when I try with Capistrano via cap deploy:cold
on my local machine, which SSH's into the remote machine, deployment fails with the following error:
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems.rb:777:in `report_activate_error': Could not find RubyGem bundler (>= 0) (Gem::LoadError)
Why is it using Ruby 1.8? How do I get it to use Ruby 1.9.3 instead?