On 11 ene, 17:09, jsnark <[email protected]> wrote: > I am using capistrano v2.9.0 to deploy to a ubuntu server running > apache v2.2.12, passenger v3.0.4, ruby v1.9.2 and rails v3.0.1. When > I deploy a new application, I often get error messages like: > > Could not find net-ssh-2.2.2 in any of the sources > (Bundler::GemNotFound) > > The missing gem is actually in the vendor/cache directory, but it is > being ignored. For a while I was globally installing these missing > gems, but recently I found that by running the command: > > $ bundle install --path vendor/cache > > after deploying the application, passenger would use the gems in the > application. > > Why do I need to do this extra step and why can't capistrano do it for > me?
If you add '--local' to your 'set :bundle_flags' statement, capistrano will automatically look into vendor/cache for the gems during the deploy process without extra work. They should be previously packaged with bundle package. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

