从下面的封面部署** [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
我对我安装的其他宝石没有任何问题。
答案 0 :(得分:0)
此问题是由确保正确重新启动nginx服务器引起的。我实际上不得不为这个问题重新启动实际操作系统,以便在nginx重启时清除自己,并且unicorn重启似乎没有效果。