【问题标题】:What is the significance of the dispatch.fcgi file in RailsRails中dispatch.fcgi文件有什么意义
【发布时间】:2011-04-08 16:33:33
【问题描述】:

在 Rails 环境中的 public 文件夹下有一个名为 dispatch.fcgi 的文件。这个特定文件的意义是什么?

我打开了那个文件,里面有这个

#   # Default log path, 50 requests between GC.
#   RailsFCGIHandler.process! nil, 50
#
#   # Custom log path, normal GC behavior.
#   RailsFCGIHandler.process! '/var/log/myapp_fcgi_crash.log'
#
require File.dirname(__FILE__) + "/../config/environment"
require 'fcgi_handler'

RailsFCGIHandler.process!

无法理解这是做什么的。谁能解释一下?

【问题讨论】:

    标签: ruby-on-rails fastcgi


    【解决方案1】:

    那一定是旧版本的 rails,因为这个文件是服务器的遗物,这些服务器在你的 http 服务器中使用 fcgi 启动 rails 应用程序。

    现在通过乘客支持 Apache 和 Nginx,或者您可以使用带有 mongrels 集群的代理,所有这些解决方案都不需要 dispatch.fcgi。

    https://serverfault.com/questions/60222/apache-dispatch-fcgi-doesnt-get-interpreted-with-passenger

    【讨论】:

      猜你喜欢
      • 2011-05-22
      • 2017-02-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-01-12
      • 1970-01-01
      • 2020-07-08
      • 2018-12-21
      相关资源
      最近更新 更多