简体   繁体   中英

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?

您可能只需要将其添加到config / deploy.rb中

require "bundler/capistrano"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM