Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 133500
Collapse All | Expand All

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

Return to bug 133500