ruby-on-rails – 为什么Capistrano没有用捆绑器安装宝石?
发布时间:2020-12-16 21:28:31 所属栏目:百科 来源:网络整理
导读:每次我使用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. 我通过手动上传我的Gemfile,SSHing
每次我使用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. 我通过手动上传我的Gemfile,SSHing到服务器,然后运行bundle install来解决这个问题.但是,这不应该发生. 这是我的deploy.rb和Capfile的副本. 有人能指出我正确的方向吗? 解决方法
您可能只需要将其添加到config / deploy.rb中
require "bundler/capistrano" (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |