0

次の cap deploy の出力の抜粋からわかるように** [out :: 178.79.170.199] Using bcrypt-ruby (3.0.1)、bcrypt-ruby gem はサーバーにインストールされていますが、ユニコーンは適切に起動できず、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には問題はありません。

4

1 に答える 1

0

この問題は、nginx サーバーが適切に再起動されたことを確認したことが原因でした。nginxの再起動とユニコーンの再起動は効果がないように見えるため、この問題を解決するには、実際に実際のOSを再起動する必要がありました。

于 2013-03-02T11:47:16.223 に答える