看来,ruby2.0.0已经添加了“默认”的gem混合,并使其不可卸除gem卸载。 如何删除所有非默认的gem?
在遵循Michael Hartl的Ruby on Rails教程的Rails 4 Beta版本的同时,我的应用程序无法在Heroku上启动,但是使用bundle exec rails server在本地运行。 检查heroku logs -t显示以下错误: $ heroku[web.1]: State changed from crashed to starting $ heroku[web.1]: Starting process with command `bin/rails server -p 33847 -e $RAILS_ENV` $ app[web.1]: bash: bin/rails: No such file or directory $ heroku[web.1]: Process exited with status 127 $ heroku[web.1]: State changed from starting to […]
我使用Ruby 2.0设置Rails 4应用程序,但是我得到“Web应用程序无法启动”并获取此跟踪: cannot load such file — bundler/setup (LoadError) /usr/local/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:53:in `require' /usr/local/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:53:in `require' /usr/lib/ruby/gems/1.8/gems/passenger-4.0.19/lib/phusion_passenger/loader_shared_helpers.rb:212:in `run_load_path_setup_code' /usr/lib/ruby/gems/1.8/gems/passenger-4.0.19/helper-scripts/rack-preloader.rb:96:in `preload_app' /usr/lib/ruby/gems/1.8/gems/passenger-4.0.19/helper-scripts/rack-preloader.rb:150:in `<module:App>' /usr/lib/ruby/gems/1.8/gems/passenger-4.0.19/helper-scripts/rack-preloader.rb:29:in `<module:PhusionPassenger>' /usr/lib/ruby/gems/1.8/gems/passenger-4.0.19/helper-scripts/rack-preloader.rb:28:in `<main>' 我的apache2.conf是: LoadModule passenger_module /usr/lib/ruby/gems/1.8/gems/passenger-4.0.19/buildout/apache2/mod_passenger.so PassengerRoot /usr/lib/ruby/gems/1.8/gems/passenger-4.0.19 PassengerDefaultRuby /usr/local/bin/ruby bundle -v是: Bundler version 1.3.5 ruby -v是: ruby 2.0.0p247 (2013-06-27 revision 41674) [x86_64-linux] gem env是: RubyGems Environment: – RUBYGEMS VERSION: 2.1.5 – RUBY […]