首页 文章

Rails 3.0 Mongrel问题

提问于
浏览
1

好吧,事实上我正在努力将应用程序移植到justhost.com,因为我还买不起自己的服务器 . 无论哪种方式,我都在mongrel.log中收到此错误,并且对此错误的含义或如何修复它没有任何帮助 .

/usr/lib/ruby/gems/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in require': no such file to load -- dispatcher (LoadError) from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in require'from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0 .0 / lib / active_support / dependencies.rb:225:in load_dependency' from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:591:in new_constants_in'from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:225:in load_dependency' from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in require 'from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/rails.rb:148:in rails' from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:113:in cloaker_'from / usr / lib / ruby / gems / 1.8 / gems / mongrel-1.1.5 / bin /../ lib / mongrel / configurator.rb:149:in call' from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/configurator.rb:149:in listener'from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin / mongrel_rails:99:in cloaker_' from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/configurator.rb:50:in call from from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/configurator.rb:50:in initialize' from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:84:in new'from / usr / lib / ruby / gems / 1.8 / gems / mongrel-1.1.5 / bin / mongrel_rails:84:in run' from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/command.rb:212:in run ' from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:281 from /usr/bin/mongrel_rails:19:in `load' from / usr / bin / mongrel_rails:19

我认为这不是涉及我的应用程序设置的任何事情,但我也是Rails的新手 . 如果有人知道如何解决这个或我可能做错了什么,我会很感激 . 提前致谢!

2 回答

  • 1

    我做了一些调查这个 . 由于JustHost使用cPanel,事实证明cPanel目前不支持Rails 3 .

  • 1

    我不知道你是否仍然对答案感兴趣,但当我尝试用我的rails3应用程序中的命令mongrel_rails start启动mongrel时,我遇到了同样的错误 .

    但是,当我在应用程序的脚本文件夹中使用rails服务器启动它时,它可以工作 . 如果mongrel gem在你的Gemfile中,运行rails服务器将启动Mongrel而不是WEBrick .

    你会发现更多信息here .

    希望这可以帮助 !

    约翰

相关问题