diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2006-06-29 00:57:54 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2006-06-29 00:57:54 +0000 |
commit | 141962348c74239874d85990ba0d9c3d5d73d9c6 (patch) | |
tree | fd8b14c174696eaddb77946ecba21c21029dafee /railties | |
parent | 0a072e8ed7256c8d555be1b6c910767c3578cd50 (diff) | |
download | rails-141962348c74239874d85990ba0d9c3d5d73d9c6.tar.gz rails-141962348c74239874d85990ba0d9c3d5d73d9c6.tar.bz2 rails-141962348c74239874d85990ba0d9c3d5d73d9c6.zip |
script/server prefers mongrel over lighttpd
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4507 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties')
-rw-r--r-- | railties/CHANGELOG | 2 | ||||
-rw-r--r-- | railties/lib/commands/server.rb | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/railties/CHANGELOG b/railties/CHANGELOG index 0d697b763d..05884d43cd 100644 --- a/railties/CHANGELOG +++ b/railties/CHANGELOG @@ -1,6 +1,6 @@ *SVN* -* Mongrel: script/server tails the rails log like it does with lighttpd. #5541 [mike@clarkware.com] +* Mongrel: script/server tails the rails log like it does with lighttpd. Prefer mongrel over lighttpd. #5541 [mike@clarkware.com] * Don't assume Active Record is available. #5497 [bob@sporkmonger.com] 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 |