Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ruby-on-rails/56.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails Rails中dispatch.fcgi文件的意义是什么_Ruby On Rails_Fastcgi - Fatal编程技术网

Ruby on rails Rails中dispatch.fcgi文件的意义是什么

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

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