rvm-capistrano icon indicating copy to clipboard operation
rvm-capistrano copied to clipboard

Detection of Ruby version is not reliable

Open rbq opened this issue 4 years ago • 0 comments

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)?

rbq avatar Nov 12 '20 15:11 rbq