提交 71040173 编写于 作者: N Nicholas Seckar

Remove requires from webrick server; they were causing dispatcher.rb to be double loaded.

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4688 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
上级 c06467fc
......@@ -60,10 +60,7 @@ def self.dispatch(options = {})
server.mount('/', DispatchServlet, options)
trap("INT") { server.shutdown }
require File.join(@server_options[:server_root], "..", "config", "environment") unless defined?(RAILS_ROOT)
require "dispatcher"
server.start
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册