2012-06-27 123 views
1

我遇到Bundler::GemNotFound: Could not find rake-0.9.2.2 in any of the sources在部署我的應用程序使用capistrano,並在處理deploy:assets:precompileCapistrano&jruby&rvm - Bundler :: GemNotFound:找不到耙0.9.2.2在任何來源

的命令是: cd /opt/app/deploy/entercamp/releases/20120627132117 && /usr/local/rvm/rubies/jruby-1.6.7/bin/jruby --1.9 -S bundle exec rake RAILS_ENV=staging RAILS_GROUPS=assets assets:precompile

我手動嘗試在服務器上的命令和它的作品相當確定。我可以看到在部署過程中,rake-0.9.2.2安裝在結果輸出bundle:install中。

問題出在哪裏?

詳細信息,請:https://gist.github.com/3005237

回答

0

這剛剛固定與RVM-Capistrano酒店項目米哈爾的幫助。

它引發此錯誤是因爲jruby默認安裝版本爲1.8,並且在部署時嘗試切換到1.9並導致問題。

解決方案是默認安裝jruby 1.9版本:rvm install jruby-1.6.7.2 --1.9然後它工作。

相關問題