当乘客“正常工作”(如广告中所述)时,乘客是惊人的,但如果没有,那么很难弄清楚究竟发生了什么。
There was an error in your Gemfile, and Bundler cannot continue.
/usr/lib/ruby/vendor_ruby/bundler/dsl.rb:12:in `rescue in evaluate'
/usr/lib/ruby/vendor_ruby/bundler/dsl.rb:6:in `evaluate'
/usr/lib/ruby/vendor_ruby/bundler/definition.rb:18:in `build'
/usr/lib/ruby/vendor_ruby/bundler.rb:135:in `definition'
/usr/lib/ruby/vendor_ruby/bundler.rb:123:in `load'
/usr/lib/ruby/vendor_ruby/bundler.rb:107:in `setup'
/usr/lib/ruby/vendor_ruby/bundler/setup.rb:17:in `<top (required)>'
/usr/local/rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
/usr/local/rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
/usr/lib/ruby/vendor_ruby/phusion_passenger/loader_shared_helpers.rb:219:in `block in run_load_path_setup_code'
/usr/lib/ruby/vendor_ruby/phusion_passenger/loader_shared_helpers.rb:333:in `running_bundler'
/usr/lib/ruby/vendor_ruby/phusion_passenger/loader_shared_helpers.rb:217:in `run_load_path_setup_code'
/usr/share/passenger/helper-scripts/rack-preloader.rb:96:in `preload_app'
/usr/share/passenger/helper-scripts/rack-preloader.rb:153:in `<module:App>'
/usr/share/passenger/helper-scripts/rack-preloader.rb:29:in `<module:PhusionPassenger>'
/usr/share/passenger/helper-scripts/rack-preloader.rb:28:in `<main>'
修补bundler
来源显示了实际的异常消息:
cannot load such file -- rubygems/format (LoadError) (Bundler::GemfileError)
也不是非常有用,但至少它看起来像bundler
在错误的环境中运行。在应用程序运行的用户下执行bundle
:
Your bundle is complete!
Gems in the groups development and test were not installed.
It was installed into /home/appname/www/shared/bundle
任何指针都会非常感激。谢谢!
答案 0 :(得分:0)
从头开始重新安装rvm
和passenger
,这有效......