aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/webrick_server.rb
diff options
context:
space:
mode:
Diffstat (limited to 'railties/lib/webrick_server.rb')
-rw-r--r--railties/lib/webrick_server.rb5
1 files changed, 1 insertions, 4 deletions
diff --git a/railties/lib/webrick_server.rb b/railties/lib/webrick_server.rb
index 679fd1f617..8f4ddb11a3 100644
--- a/railties/lib/webrick_server.rb
+++ b/railties/lib/webrick_server.rb
@@ -60,10 +60,7 @@ class DispatchServlet < WEBrick::HTTPServlet::AbstractServlet
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