<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>railties/lib/commands/servers/thin.rb</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -1,5 +1,7 @@
 *Edge*
 
+* Added Thin support to script/server.  #488 [Bob Klosinski]
+
 * Fix script/about in production mode.  #370 [Cheah Chu Yeow, Xavier Noria, David Krmpotic]
 
 * Add the gem load paths before the framework is loaded, so certain gems like RedCloth and BlueCloth can be frozen.</diff>
      <filename>railties/CHANGELOG</filename>
    </modified>
    <modified>
      <diff>@@ -13,11 +13,19 @@ rescue Exception
   # Mongrel not available
 end
 
+begin
+  require_library_or_gem 'thin'
+rescue Exception
+  # Thin not available
+end
+
 server = case ARGV.first
-  when &quot;lighttpd&quot;, &quot;mongrel&quot;, &quot;new_mongrel&quot;, &quot;webrick&quot;
+  when &quot;lighttpd&quot;, &quot;mongrel&quot;, &quot;new_mongrel&quot;, &quot;webrick&quot;, &quot;thin&quot;
     ARGV.shift
   else
-    if defined?(Mongrel)
+    if defined?(Thin)
+      &quot;thin&quot;
+    elsif defined?(Mongrel)
       &quot;mongrel&quot;
     elsif RUBY_PLATFORM !~ /(:?mswin|mingw)/ &amp;&amp; !silence_stderr { `lighttpd -version` }.blank? &amp;&amp; defined?(FCGI)
       &quot;lighttpd&quot;
@@ -33,6 +41,8 @@ case server
     puts &quot;=&gt; Booting lighttpd (use 'script/server webrick' to force WEBrick)&quot;
   when &quot;mongrel&quot;, &quot;new_mongrel&quot;
     puts &quot;=&gt; Booting Mongrel (use 'script/server webrick' to force WEBrick)&quot;
+  when &quot;thin&quot;
+    puts &quot;=&gt; Booting Thin (use 'script/server webrick' to force WEBrick)&quot;
 end
 
 %w(cache pids sessions sockets).each { |dir_to_make| FileUtils.mkdir_p(File.join(RAILS_ROOT, 'tmp', dir_to_make)) }</diff>
      <filename>railties/lib/commands/server.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>24c7f41b4fdc411e35131f9065852a685032211f</id>
    </parent>
  </parents>
  <author>
    <name>Bob Klosinski</name>
    <login>fluxin</login>
    <email>fluxin@gmail.com</email>
  </author>
  <url>http://github.com/rails/rails/commit/a93ea88c0623b4f65af98c0eb55924c335bb3ac1</url>
  <id>a93ea88c0623b4f65af98c0eb55924c335bb3ac1</id>
  <committed-date>2008-06-25T18:56:52-07:00</committed-date>
  <authored-date>2008-06-25T14:40:00-07:00</authored-date>
  <message>Added Thin support to script/server.  [#488 state:resolved]</message>
  <tree>dee675ee2f0adc7c1e09f53b988dbe609bdf10be</tree>
  <committer>
    <name>Jeremy Kemper</name>
    <login>jeremy</login>
    <email>jeremy@bitsweat.net</email>
  </committer>
</commit>
