简体   繁体   English

为什么Capistrano没有用捆绑器安装宝石?

[英]Why is Capistrano not installing gems with bundler?

Every time I deploy an app with Capistrano, it complains about missing gems. 每次我使用Capistrano部署应用程序时,都会抱怨缺少宝石。 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 . 我通过手动上传我的Gemfile,SSHing到服务器,然后运行bundle install解决这个问题。 However, this should not be happening. 但是,这不应该发生。

Here's a copy of my deploy.rb and Capfile . 这是我的deploy.rbCapfile的副本。

Could anybody point me in the right direction? 有人能指出我正确的方向吗?

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

require "bundler/capistrano"

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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