【问题标题】:Server deployment error : cap dev deploy BRANCH_TO_DEPLOY服务器部署错误:cap dev deploy BRANCH_TO_DEPLOY
【发布时间】:2016-05-30 23:07:08
【问题描述】:

1.大家好,我需要帮助! 2.我想在开发服务器上部署代码,当我输入这个命令时 cap dev deploy BRANCH_TO_DEPLOY 出现这个错误 我该怎么办?

    *WARN: Unresolved specs during Gem::Specification.reset:
  redis (>= 3.0)
  redis-namespace (>= 0)
  connection_pool (>= 1.0.0)
  json (>= 0)*emphasized text*
  i18n (~> 0.6)
  multi_json (~> 1.0)
  WARN: Clearing out unresolved specs.
  Please report a bug if this causes problems.
  /usr/local/rvm/gems/ruby-1.9.3-p547@global/gems/bundler-      1.7.2/lib/bundler/runtime.rb:34:in `block in setup': You have already ``activated celluloid 0.14.1, but your Gemfile requires celluloid 0.12.4. Prepending `bundle exec` to your command may solve this. (Gem::LoadError)
  1. 当我使用 bundle exec 时出现此错误

    /usr/local/rvm/gems/ruby-1.9.3-p547@global/gems/bundler-1.7.2/lib/bundler/rubygems_integration.rb:256:in `block in replace_gem': capistrano is not part of the bundle. Add it to Gemfile. (Gem::LoadError)
    

【问题讨论】:

    标签: ruby-on-rails ruby server rubygems


    【解决方案1】:

    不要使用bundle exec。运行bundle update celluloid,以使Gemfile.lock 中的赛璐珞版本与您安装的最新赛璐珞gem 相同。

    【讨论】:

    • 不起作用 您已经激活了赛璐珞 0.14.1,但您的 Gemfile 需要赛璐珞 0.12.4。在您的命令前添加 bundle exec 可以解决此问题。 (Gem::LoadError)
    • “您的 Gemfile 需要赛璐珞 0.12.4”意味着在您的 Gemfile.lock 中有一行写着“使用赛璐珞 0.12.4”。这就是这个问题的原因。手动或通过捆绑更新修复您的 Gemfile.lock,或 gem uninstall celluloid 修复所有高于 0.12.4 的版本。
    猜你喜欢
    • 1970-01-01
    • 2011-03-01
    • 1970-01-01
    • 1970-01-01
    • 2015-11-23
    • 2019-11-16
    • 1970-01-01
    • 2017-04-17
    • 1970-01-01
    相关资源
    最近更新 更多