【发布时间】: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