独角兽不是捆绑的一部分。将其添加到Gemfile

时间:2014-07-11 13:08:45

标签: ruby-on-rails nginx capistrano unicorn digital-ocean

尝试使用capistrano,nginx和unicorn在数字海洋(Ubuntu,Ruby on Rails)上进行部署时,我收到此错误:

DEBUG[fae8c972]     /home/deploy/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.6.3/lib/bundler/rubygems_integration.rb:252:in `block in replace_gem'
DEBUG[fae8c972]     :
DEBUG[fae8c972]     unicorn is not part of the bundle. Add it to Gemfile.
DEBUG[fae8c972]      (
DEBUG[fae8c972]     Gem::LoadError
DEBUG[fae8c972]     )
DEBUG[fae8c972]         from /home/deploy/.rbenv/versions/2.1.2/bin/unicorn:22:in `<main>'
cap aborted!

独角兽gem存在于gemfile和gemfile.lock

任何帮助都将受到高度赞赏。感谢

更新 - 刚发现我的服务器正在挑选旧版本的Gemfile(其中没有列出独角兽)。知道怎么解决这个问题吗?

1 个答案:

答案 0 :(得分:0)

默认情况下,部署是从master分支发生的。

将此行添加到deploy.rb解决了以下问题: set:branch,'develop'