每次我使用Capistrano部署应用程序时,都会抱怨缺少宝石.
例如:
例如:
** [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.@H_403_5@我通过手动上传我的Gemfile,SSHing到服务器,然后运行bundle install来解决这个问题.但是,这不应该发生. @H_403_5@这是我的deploy.rb和Capfile的副本. @H_403_5@有人能指出我正确的方向吗?
解决方法
您可能只需要将其添加到config / deploy.rb中
require "bundler/capistrano"