title: How do I manage bundled gems in a capistrano deployment?
body: <p>Currently, I'm just running the following:</p>
  
  <p>after 'deploy:update_code', 'deploy:bundle'</p>
  
  <pre><code>namespace :deploy do
    task :bundle do
      run "cd #{release_path} &amp;&amp; bundle install --deployment --without development test staging"
    end
  end
  </code></pre>
  
  <p>Now this works fine, but the bundler ends up installing all the gems to <code>vendor/gems</code> every time. While I understand the merit in isolating the gems to each release (as opposed to using the shared folder, which (?) might result in errors on rollback and such), surely there is a better way to do this that doesn't take as much time to deploy and saves on disk space.</p>