rvm-capistrano
rvm-capistrano copied to clipboard
Detection of Ruby version is not reliable
I got a weird error telling me that RVM couldn't use the Ruby version .bundle
. Apparently rvm-capistrano looks at $GEM_PATH
, hoping that the last path segment might indicate the version of Ruby that's currently active. This seems to fails when Bundler modifies $GEM_PATH
to point to your bundled project Gems.
For now I'm adding set :rvm_ruby_string, File.read('.ruby-version').strip
to my deploy.rb
, but there is probably a better way to do this. Maybe using rvm current
(minus the Gemset, if one is enabled)?