Yuval Karmi
Yuval Karmi

Reputation: 26713

Why is Capistrano not installing gems with bundler?

Every time I deploy an app with Capistrano, it complains about missing gems. For example:

 ** [out :: mysite.com] Could not find WhateverGem-1.0.0 in any of the sources
 ** [out :: mysite.com] Run `bundle install` to install missing gems.

I resolve this by manually uploading my Gemfile, SSHing into the server, and running bundle install. However, this should not be happening.

Here's a copy of my deploy.rb and Capfile.

Could anybody point me in the right direction?

Upvotes: 7

Views: 8503

Answers (1)

Jesse Wolgamott
Jesse Wolgamott

Reputation: 40277

You probably just need to add this to your config/deploy.rb

require "bundler/capistrano"

Upvotes: 19

Related Questions