Would setting a bundle_dir
work for you?
set :bundle_dir, "/my/bundle/path"
I think by default it is set to:
set :bundle_dir, File.join(fetch(:shared_path), 'bundle')
Question
We are using capistrano to deploy our rails app and the dev / production version of the app uses the shared/bundle folder. Is there a way to prevent creation of shared/bundle and ask capistrano to use individual gemsets across different stages?
Solution
Would setting a bundle_dir
work for you?
set :bundle_dir, "/my/bundle/path"
I think by default it is set to:
set :bundle_dir, File.join(fetch(:shared_path), 'bundle')
OTHER TIPS
When you say stages, do you mean that you have different environments on the same box, and are using capistrano/multistage?
If so, giving your application a different name for each stage will separate the shared directory.
In deploy/development.rb
set :application, "myapp-dev"
In deploy/production.rb
set :application, "myapp-prod"