Ruby on rails Rails中dispatch.fcgi文件的意义是什么
Rails环境中的公用文件夹下有一个名为Ruby on rails Rails中dispatch.fcgi文件的意义是什么,ruby-on-rails,fastcgi,Ruby On Rails,Fastcgi,Rails环境中的公用文件夹下有一个名为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
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!
我不明白这是怎么回事。有人能解释一下吗?那一定是旧版本的rails,因为此文件是在http服务器中使用fcgi启动rails应用程序的服务器的遗留文件 Apache和Nginx现在通过passenger得到支持,或者您可以将代理与mongrels群集一起使用,所有这些解决方案都不需要dispatch.fcgi
这必须是rails的旧版本,因为此文件是在http服务器中使用fcgi启动rails应用程序的服务器的遗留文件 Apache和Nginx现在通过passenger得到支持,或者您可以将代理与mongrels群集一起使用,所有这些解决方案都不需要dispatch.fcgi