rvm/rubygems-bundler

doesn't work with BUNDLE_PATH set via Capistrano

aspiers opened this issue · 3 comments

Deploying via rvm-capistrano results in bundle config having the path set to
#{deploy_to}/shared/bundle. Whether rubygems-bundler is installed into the default gemset or global, or to shared/bundle, gem regenerate_binstubs won't generate binstubs for all the commands in #{deploy_to}/shared/bundle:

https://gist.github.com/aspiers/5091419

a proof of concept is:

ruby -e 'gem "rubygems-bundler"; require "rubygems-bundler/regenerate_binstubs_command"; require "bundler"; Bundler.setup; RegenerateBinstubsCommand.new.execute'

but it would require some caching for gem calls after bundler is loaded

I was trying to get back to this problem and remembered there is a new recommendation for rvm-caistrano => https://github.com/wayneeseguin/rvm-capistrano#disabling-bundle---deployment-when-using-gemsets would it be sufficient temporary solution?

Closing as there was no feedback in almost a month and the proposed solution is recommended in docs, please let me know if this is not acceptable and requires more work.