我尝试在此页面后部署我的rails应用程序。
https://gorails.com/deploy/ubuntu/14.04
所以一切看起来都不错,但最后我跑了
cap production deploy
我的页面上没有这个。
Please read the Passenger log file to find the details of the error.
所以我打开了那个文件,我得到了这个
Could not find rake-10.5.0 in any of the sources (Bundler::GemNotFound)
<pre> /var/lib/gems/1.9.1/gems/bundler-1.11.2/lib/bundler/spec_set.rb:94:in `block in materialize'
/var/lib/gems/1.9.1/gems/bundler-1.11.2/lib/bundler/spec_set.rb:87:in `map!'
/var/lib/gems/1.9.1/gems/bundler-1.11.2/lib/bundler/spec_set.rb:87:in `materialize'
/var/lib/gems/1.9.1/gems/bundler-1.11.2/lib/bundler/definition.rb:137:in `specs'
/var/lib/gems/1.9.1/gems/bundler-1.11.2/lib/bundler/definition.rb:182:in `specs_for'
/var/lib/gems/1.9.1/gems/bundler-1.11.2/lib/bundler/definition.rb:171:in `requested_specs'
/var/lib/gems/1.9.1/gems/bundler-1.11.2/lib/bundler/environment.rb:18:in `requested_specs'
/var/lib/gems/1.9.1/gems/bundler-1.11.2/lib/bundler/runtime.rb:13:in `setup'
/var/lib/gems/1.9.1/gems/bundler-1.11.2/lib/bundler.rb:92:in `setup'
/var/lib/gems/1.9.1/gems/bundler-1.11.2/lib/bundler/setup.rb:18:in `<top (required)>'
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
/usr/lib/ruby/vendor_ruby/phusion_passenger/loader_shared_helpers.rb:430:in `activate_gem'
/usr/lib/ruby/vendor_ruby/phusion_passenger/loader_shared_helpers.rb:297:in `block in run_load_path_setup_code'
/usr/lib/ruby/vendor_ruby/phusion_passenger/loader_shared_helpers.rb:435:in `running_bundler'
/usr/lib/ruby/vendor_ruby/phusion_passenger/loader_shared_helpers.rb:296:in `run_load_path_setup_code'
/usr/share/passenger/helper-scripts/rack-preloader.rb:100:in `preload_app'
/usr/share/passenger/helper-scripts/rack-preloader.rb:156:in `<module:App>'
/usr/share/passenger/helper-scripts/rack-preloader.rb:30:in `<module:PhusionPassenger>'
/usr/share/passenger/helper-scripts/rack-preloader.rb:29:in `<main>'</pre>
我该如何解决这个问题?
谢谢!
答案 0 :(得分:1)
之前我遇到过类似错误,有时需要将 em&#39; rake&#39; 直接放在 Gemfile 上。然后运行bundle / bundle install。