Search code examples
ruby-on-railscapistranorvm-capistrano

How to avoid shared bundle folders during deployment


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