从 cap deploy 的以下输出摘录中可以看出,** [out :: 178.79.170.199] Using bcrypt-ruby (3.0.1)
我的服务器上安装了 bcrypt-ruby gem,但 unicorn 无法正常启动并抱怨 bcrypt-ruby gem 不是捆绑包的一部分。
更新 - 确切的错误消息是
/home/myuser/.rvm/gems/ruby-1.9.3-p374@global/gems/bundler-1.2.3/lib/bundler/rubygems_integration.rb:147:in `block in replace_gem': bcrypt-ruby is not part of the bundle. Add it to Gemfile. (Gem::LoadError)
我已经重新启动了我的 nginx 服务器和独角兽。
我怎样才能解决这个问题?
控制台输出的摘录来自cap deploy
** [out :: 178.79.170.199] Using bcrypt-ruby (3.0.1)
** [out :: 178.79.170.199] Using highline (1.6.15)
** [out :: 178.79.170.199] Using net-ssh (2.6.3)
** [out :: 178.79.170.199] Using net-scp (1.0.4)
** [out :: 178.79.170.199] Using net-sftp (2.0.5)
** [out :: 178.79.170.199] Using net-ssh-gateway (1.1.0)
** [out :: 178.79.170.199] Using capistrano (2.14.1)
** [out :: 178.79.170.199] Using coffee-script-source (1.4.0)
** [out :: 178.79.170.199] Using execjs (1.4.0)
** [out :: 178.79.170.199] Using coffee-script (2.2.0)
** [out :: 178.79.170.199] Using rack-ssl (1.3.3)
** [out :: 178.79.170.199] Using json (1.7.6)
** [out :: 178.79.170.199]
** [out :: 178.79.170.199] Using rdoc (3.12)
** [out :: 178.79.170.199]
** [out :: 178.79.170.199] Using thor (0.17.0)
** [out :: 178.79.170.199] Using railties (3.2.11)
** [out :: 178.79.170.199] Using coffee-rails (3.2.2)
** [out :: 178.79.170.199]
** [out :: 178.79.170.199] Using jquery-rails (2.2.0)
** [out :: 178.79.170.199]
** [out :: 178.79.170.199] Using kgio (2.8.0)
** [out :: 178.79.170.199]
** [out :: 178.79.170.199] Using mysql2 (0.3.11)
** [out :: 178.79.170.199] Using bundler (1.2.3)
** [out :: 178.79.170.199]
** [out :: 178.79.170.199] Using rails (3.2.11)
** [out :: 178.79.170.199]
** [out :: 178.79.170.199] Using raindrops (0.10.0)
** [out :: 178.79.170.199]
** [out :: 178.79.170.199] Using rvm-capistrano (1.2.7)
** [out :: 178.79.170.199]
** [out :: 178.79.170.199] Using sass (3.2.5)
** [out :: 178.79.170.199] Using sass-rails (3.2.6)
** [out :: 178.79.170.199] Using uglifier (1.3.0)
** [out :: 178.79.170.199] Using unicorn (4.5.0)
** [out :: 178.79.170.199] Your bundle is complete! It was installed into /home/myuser/myapp/shared/bundle
我安装的其他 gem 没有问题。