Ruby on rails 服务器部署错误:cap dev部署分支到部署
大家好,我需要帮助! 2.我想在dev服务器上部署一个代码,当我发出这个命令时 cap dev部署分支\u到\u部署出现此错误 我能做什么Ruby on rails 服务器部署错误:cap dev部署分支到部署,ruby-on-rails,ruby,server,rubygems,Ruby On Rails,Ruby,Server,Rubygems,大家好,我需要帮助! 2.我想在dev服务器上部署一个代码,当我发出这个命令时 cap dev部署分支\u到\u部署出现此错误 我能做什么 *WARN: Unresolved specs during Gem::Specification.reset: redis (>= 3.0) redis-namespace (>= 0) connection_pool (>= 1.0.0) json (>= 0)*emphasized text* i18
*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)
/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)
不要使用
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卸载赛璐珞
0.12.4之后的所有版本。