diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2006-12-01 23:02:48 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2006-12-01 23:02:48 +0000 |
commit | 1ac4470da52e3ad4eee945e70f597ce7af7f0003 (patch) | |
tree | a3644ed2a9337a4e1f59ca381fdd752eb6cb7bf5 /railties/lib | |
parent | 8ffb22056c2896a67917b813064b2247233d3a08 (diff) | |
download | rails-1ac4470da52e3ad4eee945e70f597ce7af7f0003.tar.gz rails-1ac4470da52e3ad4eee945e70f597ce7af7f0003.tar.bz2 rails-1ac4470da52e3ad4eee945e70f597ce7af7f0003.zip |
Wups
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5662 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/commands/servers/lighttpd.rb | 8 |
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 |