Search code examples
ruby-on-railsrubygemsbundlercapistrano3

capistrano regenerating wrappers error


I'm trying to deploy a rails project via capistrano v 3.1.0 and rubygems-bundler gem.

I've executed following commands on local machine and on server i'm trying to deploy to via ssh.

gem install rubygems-bundler
gem regenerate_binstubs

But when i try to run capistrano deploy task it's interrupted with the following message and all later input does nothing

DEBUG[304abaa0] Regenerating ruby-2.1.3 wrappers DEBUG[304abaa0] ........ DEBUG[304abaa0] The bundler binstubs directory is in the current directory, which may be unsafe. DEBUG[304abaa0] Consider using rubygems-bundler instead => https://github.com/mpapis/rubygems-bundler DEBUG[304abaa0] Remove the BUNDLE_BIN line from .bundle/config to disable this prompt. DEBUG[304abaa0] Are you sure you want to add the bundler binstubs directory to the path? DEBUG[304abaa0] (anything other than 'Yes' will cancel) >

Can you give me any advice? Thanks in advance!


Solution

  • Upgraded rake to v 10.4, added line set :bundle_flags, '--no-binstubs' to deploy.rb
    This fixed the problem!