capistrano/capistrano — Issue #146: Feature:  Bundle gems before sending to server
Author: jspooner
Created: 2012-01-20 16:56:26+00:00
State: open

Our servers dont have access to external sources so we're using :deploy_via, :copy to update the source code. The only problem is that the Copy strategy is not running 'bundle package' so the server is trying to install gems from rubygems.org.

I believe the Strategy::Copy deploy method should run 'bundle package' just before line 99 like this

```ruby
# TODO run bundle package
File.open(File.join(destination, "REVISION"), "w") { |f| f.puts(revision) }
```

This will package all gems in 'vendor/cache'.

Then after the compress file is transfered to the servers running `bundle install --deployment` will will use the gems in the package and skip connecting to rubygems.org.