Ruby on rails rails 3应用程序何时加载environment.rb文件?

Ruby on rails rails 3应用程序何时加载environment.rb文件?,ruby-on-rails,Ruby On Rails,在我的rails 3应用程序中,我没有看到任何对我的environment.rb文件的引用,我一定是找对了地方 它现在叫Differentity吗,我还以为它在/public/dispatch.rb中呢?它在config.ru中。这是启动应用程序时,任何机架complient服务器都将加载的。它包含如下内容: require ::File.expand_path('../config/environment', __FILE__) run YourApp::Application 第一行加载

在我的rails 3应用程序中,我没有看到任何对我的environment.rb文件的引用,我一定是找对了地方


它现在叫Differentity吗,我还以为它在/public/dispatch.rb中呢?

它在
config.ru
中。这是启动应用程序时,任何机架complient服务器都将加载的。它包含如下内容:

require ::File.expand_path('../config/environment',  __FILE__)
run YourApp::Application
第一行加载您的环境。
第二行告诉Rack server您的应用程序是要加载的Rack应用程序。

那么rails 3之前不是Rack?