On 11 January 2012 16:09, jsnark <s...@monmouth.com> 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
My understanding (which may be faulty) is that the --path option tell bundle install where to put the gems, so this command installs the gems to 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? Because that is what bundle install is for, to install the appropriate gems as defined by Gemfile and gemfile.lock. The one thing I am not sure of is why it did not work when the gems were already in vendor/cache. How did you get them there in the first place? Colin -- 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 rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.