Rails3.2.1でCapistranoを使用しています。するとcap deploy
、次のエラーが発生します。
Could not find multi_json-1.3.6 in any of the sources
このエラーの原因となる関連する出力の一部を次に示します。
* executing `deploy:assets:precompile'
* executing "cd /home/jason/dittypad-cap/releases/20120728190221 && bundle exec rake RAILS_ENV=production RAILS_GROUPS=assets assets:precompile"
servers: ["sniphq.com"]
[sniphq.com] executing command
** [out :: sniphq.com] Could not find multi_json-1.3.6 in any of the sources
しかし、私はこの宝石を持っています:
$ bundle list | grep multi_json
* multi_json (1.3.6)
assets:precompile
直接本番環境で実行した場合にどうなるか知りたいと思いました。初めて試したときはうまくいきました。しかし今、私がそれを試してみると、私はこれを手に入れます:
$ bundle exec rake RAILS_ENV=production RAILS_GROUPS=assets assets:precompile
/home/jason/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.22/lib/bundler/rubygems_integration.rb:143:in `block in replace_gem': rake is not part of the bundle. Add it to Gemfile. (Gem::LoadError)
from /home/jason/dittypad-cap/shared/bundle/ruby/1.9.1/bin/rake:18:in `<main>'
multi_json
持っているのに行方不明だと文句を言うのはなぜですか?