aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/commands
diff options
context:
space:
mode:
Diffstat (limited to 'railties/lib/commands')
-rw-r--r--railties/lib/commands/server.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/railties/lib/commands/server.rb b/railties/lib/commands/server.rb
index c61a4388d5..94208f7575 100644
--- a/railties/lib/commands/server.rb
+++ b/railties/lib/commands/server.rb
@@ -17,10 +17,10 @@ server = case ARGV.first
when "lighttpd", "mongrel", "webrick"
ARGV.shift
else
- if RUBY_PLATFORM !~ /mswin/ && !silence_stderr { `lighttpd -version` }.blank? && defined?(FCGI)
- "lighttpd"
- elsif defined?(Mongrel)
+ if defined?(Mongrel)
"mongrel"
+ elsif RUBY_PLATFORM !~ /mswin/ && !silence_stderr { `lighttpd -version` }.blank? && defined?(FCGI)
+ "lighttpd"
else
"webrick"
end