aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/commands/servers/lighttpd.rb
diff options
context:
space:
mode:
Diffstat (limited to 'railties/lib/commands/servers/lighttpd.rb')
-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 07d4f9d0bf..83a2c8a8e0 100644
--- a/railties/lib/commands/servers/lighttpd.rb
+++ b/railties/lib/commands/servers/lighttpd.rb
@@ -11,10 +11,6 @@ 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
@@ -67,6 +63,10 @@ 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