0

我正在使用 Mongrel 运行一个 ruby​​ 应用程序(Redmine)。它可以成功启动,但是,一旦收到 HTTP 请求,它就会遇到以下错误:

** Signals ready.  TERM => stop.  USR2 => restart.  INT => stop (no restart).
** Rails signals registered.  HUP => reload (without restart).  It might not work well.
** Mongrel 1.2.0.pre2 available at 0.0.0.0:9001
** Use CTRL-C to stop.
2012-10-20 11:20:21 -0700: **Error calling Dispatcher.dispatch #<NameError: uninitialized constant ActionController::CgiRequest>
/usr/local/lib/ruby/gems/1.9.1/gems/mongrel-1.2.0.pre2/lib/mongrel/rails.rb:76:in `block in process'
<internal:prelude>:10:in `synchronize'**
/usr/local/lib/ruby/gems/1.9.1/gems/mongrel-1.2.0.pre2/lib/mongrel/rails.rb:74:in `process'
/usr/local/lib/ruby/gems/1.9.1/gems/mongrel-1.2.0.pre2/lib/mongrel.rb:165:in `block in process_client'
/usr/local/lib/ruby/gems/1.9.1/gems/mongrel-1.2.0.pre2/lib/mongrel.rb:164:in `each'
/usr/local/lib/ruby/gems/1.9.1/gems/mongrel-1.2.0.pre2/lib/mongrel.rb:164:in `process_client'
/usr/local/lib/ruby/gems/1.9.1/gems/mongrel-1.2.0.pre2/lib/mongrel.rb:291:in `block (2 levels) in run'

有没有人有任何线索?

4

1 回答 1

0

原来是如何启动 Mongrel的问题:

ruby script/rails server mongrel --> 这成功启动了我的 ruby​​ 应用程序。

mongrel_rails start --> 这带来了上面的错误信息。

这两个命令有什么区别?

我的红宝石应用程序是 Redmine。

于 2012-10-24T05:54:20.100 回答