ruby - bundle install --deployment 数量错误

标签 ruby ruby-on-rails-3 bundler

我在 Gemfile 中有这一行:

gem "acts_as_versioned", :git => 'https://github.com/rtacconi/acts_as_versioned.git'

在两台服务器上,部署模式下的 bundle 安装有效,但在一台服务器上,我得到了这个:

  * executing "cd /path_to_app/releases/20130705120639 && bundle install --gemfile /path_to_app/releases/20130705120639/Gemfile --path /path_to_app/shared/bundle --deployment --quiet --without development test"
    servers: ["173.255.196.228"]
    [173.255.196.228] executing command
 ** [out :: 173.255.196.228] Unpacking objects:   8% (1/12)
 ** [out :: 173.255.196.228] Unpacking objects:  16% (2/12)
 ** [out :: 173.255.196.228] Unpacking objects:  25% (3/12)
 ** [out :: 173.255.196.228] Unpacking objects:  33% (4/12)
 ** [out :: 173.255.196.228] Unpacking objects:  41% (5/12)
 ** [out :: 173.255.196.228] Unpacking objects:  50% (6/12)
 ** [out :: 173.255.196.228] Unpacking objects:  58% (7/12)
 ** [out :: 173.255.196.228] Unpacking objects:  66% (8/12)
 ** [out :: 173.255.196.228] Unpacking objects:  75% (9/12)
 ** [out :: 173.255.196.228] Unpacking objects:  83% (10/12)
 ** [out :: 173.255.196.228] Unpacking objects:  91% (11/12)
Unpacking objects: 100% (12/12), done. objects: 100% (12/12)   
 ** [out :: 173.255.196.228] ArgumentError: wrong number of arguments (1 for 3)
 ** [out :: 173.255.196.228] An error occurred while installing acts_as_versioned (0.6.1), and Bundler cannot
 ** [out :: 173.255.196.228] continue.
 ** [out :: 173.255.196.228] Make sure that `gem install acts_as_versioned -v '0.6.1'` succeeds before
 ** [out :: 173.255.196.228] bundling.

最佳答案

尝试将 bundler 降到原始状态:

gem pristine bundler

除此之外,我还会尝试 gem update bundler

关于ruby - bundle install --deployment 数量错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17488494/

相关文章:

ruby - 更改字符编码

ruby-on-rails - application.html.erb 其中第 6 行引发 : TypeError: Ruby on rails

ruby - 如果源无法访问,请忽略 Gemfile `source`

javascript - 在单个 ajax 响应中获取父对象和子对象

ruby - 安装 crypt (3.1.7) 时出错

mysql - 无法激活 mysql2 (~> 0.3.6),已在 Rails 3.1 中激活 mysql2-0.3.2

ruby - 具有真值的案例陈述

ruby - 为什么 Logger 输出到 STDOUT 不会重定向到文件?

ruby-on-rails - Rails : to_json method, 添加函数返回值

ruby-on-rails - 如何升级到最新版本的 ruby​​ on rails 3.2.8?