aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--railties/lib/commands/servers/lighttpd.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/railties/lib/commands/servers/lighttpd.rb b/railties/lib/commands/servers/lighttpd.rb
index 83a2c8a8e0..07d4f9d0bf 100644
--- a/railties/lib/commands/servers/lighttpd.rb
+++ b/railties/lib/commands/servers/lighttpd.rb
@@ -11,6 +11,10 @@ unless defined?(FCGI)
exit 1
end
+require 'initializer'
+configuration = Rails::Initializer.run(:initialize_logger).configuration
+default_config_file = config_file = Pathname.new("#{RAILS_ROOT}/config/lighttpd.conf").cleanpath
+
require 'optparse'
detach = false
@@ -63,10 +67,6 @@ puts "=> Rails application starting on http://#{ip || default_ip}:#{port || defa
tail_thread = nil
if !detach
- require 'initializer'
- configuration = Rails::Initializer.run(:initialize_logger).configuration
- default_config_file = config_file = Pathname.new("#{RAILS_ROOT}/config/lighttpd.conf").cleanpath
-
puts "=> Call with -d to detach"
puts "=> Ctrl-C to shutdown server (see config/lighttpd.conf for options)"
detach = false