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

Changeset 4486

Show
Ignore:
Timestamp:
06/23/06 22:32:10 (3 years ago)
Author:
bitsweat
Message:

Mongrel support for script/server. Closes #5475.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/railties/CHANGELOG

    r4450 r4486  
    11*SVN* 
     2 
     3* Mongrel support for script/server.  #5475 [jeremydurham@gmail.com] 
    24 
    35* Fix script/plugin so it doesn't barf on invalid URLs [Rick] 
  • trunk/railties/lib/commands/server.rb

    r4426 r4486  
    99 
    1010server = case ARGV.first 
    11   when "lighttpd" 
    12     ARGV.shift 
    13   when "webrick" 
     11  when "lighttpd", "mongrel", "webrick" 
    1412    ARGV.shift 
    1513  else 
    1614    if RUBY_PLATFORM !~ /mswin/ && !silence_stderr { `lighttpd -version` }.blank? && defined?(FCGI) 
    1715      "lighttpd" 
     16    elsif !silence_stderr { `mongrel_rails -v` }.blank? 
     17      "mongrel" 
    1818    else 
    1919      "webrick" 
     
    2121end 
    2222 
    23 if server == "webrick" 
    24   puts "=> Booting WEBrick..." 
    25 else 
    26   puts "=> Booting lighttpd (use 'script/server webrick' to force WEBrick)" 
     23case server 
     24  when "webrick" 
     25    puts "=> Booting WEBrick..." 
     26  when "lighttpd" 
     27    puts "=> Booting lighttpd (use 'script/server webrick' to force WEBrick)" 
     28  when "mongrel" 
     29    puts "=> Booting Mongrel (use 'script/server webrick' to force WEBrick)" 
    2730end 
    2831