Recently I've been trying to upgrade Webistrano from a version that did not use bundler to manage the application gems to one that does. In order to deploy rails applications, we would use require 'bundler/capistrano'
in the recipe to have the bundler loaded for the application and other related steps (like precompiling assets, etc.). However, once bundler is used with a Gemfile to specify and load the appropriate gem environment, having require 'bundler/capistrano'
throws the following error:
** loading stage recipe 'bundler'
*** defining a task named `install' would shadow an existing method with that name
If I exclude the require from the recipe, the deploy continues but does not use bundler (no bundle exec
, etc.)
I also have similar issues with require 'rvm/capistrano'
when attempting to use rvm
to manage the ruby environment.
Any thoughts on how to fix this?