Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #7084: fix_mongrel_server_logger.diff

File fix_mongrel_server_logger.diff, 0.8 kB (added by jeremymcanally, 2 years ago)

Svn diff

  • railties/lib/commands/servers/mongrel.rb

    old new  
    4545else 
    4646  ENV["RAILS_ENV"] = OPTIONS[:environment] 
    4747  RAILS_ENV.replace(OPTIONS[:environment]) if defined?(RAILS_ENV) 
    48  
     48   
    4949  require 'initializer' 
    50   Rails::Initializer.run(:initialize_logger) 
     50  configuration = Rails::Initializer.run(:initialize_logger).configuration 
     51   
     52  require RAILS_ROOT + "/config/environment" 
    5153 
    5254  puts "=> Call with -d to detach" 
    5355  puts "=> Ctrl-C to shutdown server" 
    54   tail_thread = tail(Pathname.new("#{File.expand_path(RAILS_ROOT)}/log/#{RAILS_ENV}.log").cleanpath) 
     56  tail_thread = tail(Pathname.new(configuration.log_path).cleanpath) 
    5557 
    5658  trap(:INT) { exit } 
    5759