View | Details | Raw Unified
Collapse All | Expand All

(-) lib/commands/server.rb (-1 / +7 lines)
 Lines 14-20    Link Here 
    ARGV.shift
    ARGV.shift
  else
  else
    if RUBY_PLATFORM !~ /mswin/ && !silence_stderr { `lighttpd -version` }.blank? && defined?(FCGI)
    if RUBY_PLATFORM !~ /mswin/ && !silence_stderr { `lighttpd -version` }.blank? && defined?(FCGI)
      "lighttpd"
      if %x(lighttpd -version) =~ /^lighttpd-(\d+)\.(\d+)\.(\d+)/ and ($1.to_i < 1 or $2.to_i < 4 or $3.to_i < 10)
        puts "You are using an old version of lighttpd (less than 1.4.10)"
        puts "Your lighttpd should not work properly with rails and will be ignored"
        "webrick"
      else
        "lighttpd"
      end
    else
    else
      "webrick"
      "webrick"
    end
    end