Rails 3.0 杂种问题

发布于 2024-09-25 14:47:11 字数 2016 浏览 1 评论 0原文

好吧,伙计们,事实是我正在努力将应用程序移植到 justhost.com,因为我还买不起自己的服务器。不管怎样,我在 mongrel.log 中收到了这个错误,但我没有得到关于这个错误的含义或如何修复它的帮助。

/usr/lib/ruby/gems/1.8/gems/activesupport-3.0.0/lib/active_support/dependency.rb:239:in require': 没有要加载的文件 -- 调度程序 (LoadError) 来自 /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.0/lib/active_support/dependency.rb:239:inrequire' 来自 /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.0/lib/active_support/dependency.rb:225:in load_dependency' 来自 /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.0/lib/active_support/dependency.rb:591:innew_constants_in' 来自 /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.0/lib/active_support/dependency.rb:225:in load_dependency' 来自 /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.0/lib/active_support/dependency.rb:239:inrequire' 来自 /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/rails.rb:148:in rails' 来自 /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:113:incloaker_' 来自 /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/configurator.rb:149:in call' 来自 /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/configurator.rb:149:inlistener' 来自 /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:99:in cloaker_' 来自 /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/configurator.rb:50:incall' 来自 /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/configurator.rb:50:in initialize' 来自 /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:84:innew' 来自 /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:84:in run' 来自 /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/command.rb:212:inrun' 来自 /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:281 来自 /usr/bin/mongrel_rails:19:in `load' 来自 /usr/bin/mongrel_rails:19

我不认为这与我的应用程序的设置有关,但我对 Rails 也有点陌生。如果有人知道如何解决这个问题或我可能做错了什么,我将不胜感激。提前致谢!

Ok guys the truth is I'm working on porting an application up to justhost.com as I cant afford my own servers yet. Either way I have been receiving this error in the mongrel.log and am getting no help as to what this error means or how to fix it.

/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 /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

I don't think this is anything dealing with the setup of my application, but I'm also a bit of a newb to Rails. If anyone knows how to fix this or what I may have done wrong, I'd appreciate it. Thanks in advance!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

吻风 2024-10-02 14:47:11

我对这个做了一些调查。由于 JustHost 使用 cPanel,因此 cPanel 目前不支持 Rails 3。

I did some looking into this one. As JustHost uses cPanel it turns out that cPanel currently does not support Rails 3.

看透却不说透 2024-10-02 14:47:11

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

但当我在应用程序的脚本文件夹中使用 Rails 服务器启动它时,它就起作用了。如果 mongrel gem 在您的 Gemfile 中,则运行 Rails 服务器将启动 Mongrel 而不是 WEBrick。

您可以在此处找到更多信息。

希望这有帮助!

约翰

I don't know if you're still interested in an answer but I had the same error when I was trying to start mongrel with the command mongrel_rails start in my rails3 app.

But it worked when I started it with rails server in the script folder of your app. If the mongrel gem is in your Gemfile, running rails server will start Mongrel and not WEBrick.

You'll find more information here.

Hope this helps !

Johan

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文