【问题标题】:Capistrano 3 doesn't work with bundler warning (bundler-unload)Capistrano 3 不适用于捆绑程序警告 (bundler-unload)
【发布时间】:2013-11-01 12:06:05
【问题描述】:

我在cap deploy 开头of bundle:install 有一个bundler 警告:

WARN: Unresolved specs during Gem::Specification.reset:
DEBUG [9c13fdda]    
DEBUG [9c13fdda]          bundler-unload (>= 1.0.1)
DEBUG [9c13fdda]    
DEBUG [9c13fdda]    WARN: Clearing out unresolved specs.
DEBUG [9c13fdda]    
DEBUG [9c13fdda]    Please report a bug if this causes problems.
DEBUG [9c13fdda]    
DEBUG [9c13fdda]    Fetching gem metadata from https://rubygems.org/
DEBUG [9c13fdda]    .

但 gems 安装成功。

然后 capistrano 在尝试运行 assets:precompile 时失败,因为它找不到所有以前安装的 gem:

Command: cd /home/web/www/project/releases/20131101111717 && ( RAILS_ENV=staging /usr/local/rvm/bin/project_rake assets:precompile )
DEBUG [e3973943]    /usr/local/rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/spec_set.rb:92:in `block in materialize'
DEBUG [e3973943]    : 
DEBUG [e3973943]    Could not find multi_json-1.7.9 in any of the sources
DEBUG [e3973943]     (
DEBUG [e3973943]    Bundler::GemNotFound
DEBUG [e3973943]    )

【问题讨论】:

    标签: ruby-on-rails ruby capistrano bundler


    【解决方案1】:

    这将删除警告并修复 Bundler::GemNotFound 错误

    在服务器上:

    gem uninstall bundler-unload
    gem install rubygems-bundler
    

    【讨论】:

      猜你喜欢
      • 2013-10-22
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-04-28
      • 1970-01-01
      • 2011-08-06
      • 1970-01-01
      • 2015-03-19
      相关资源
      最近更新 更多