public
Description: Ruby on Rails
Homepage: http://rubyonrails.org
Clone URL: git://github.com/rails/rails.git
Added Thin support to script/server.  [#488 state:resolved]
fluxin (author)
Wed Jun 25 14:40:00 -0700 2008
jeremy (committer)
Wed Jun 25 18:56:52 -0700 2008
commit  a93ea88c0623b4f65af98c0eb55924c335bb3ac1
tree    dee675ee2f0adc7c1e09f53b988dbe609bdf10be
parent  24c7f41b4fdc411e35131f9065852a685032211f
...
1
2
 
 
3
4
5
...
1
2
3
4
5
6
7
0
@@ -1,5 +1,7 @@
0
 *Edge*
0
 
0
+* Added Thin support to script/server.  #488 [Bob Klosinski]
0
+
0
 * Fix script/about in production mode.  #370 [Cheah Chu Yeow, Xavier Noria, David Krmpotic]
0
 
0
 * Add the gem load paths before the framework is loaded, so certain gems like RedCloth and BlueCloth can be frozen.
...
13
14
15
 
 
 
 
 
 
16
17
 
18
19
20
 
 
 
21
22
23
...
33
34
35
 
 
36
37
38
...
13
14
15
16
17
18
19
20
21
22
 
23
24
25
 
26
27
28
29
30
31
...
41
42
43
44
45
46
47
48
0
@@ -13,11 +13,19 @@ rescue Exception
0
   # Mongrel not available
0
 end
0
 
0
+begin
0
+  require_library_or_gem 'thin'
0
+rescue Exception
0
+  # Thin not available
0
+end
0
+
0
 server = case ARGV.first
0
-  when "lighttpd", "mongrel", "new_mongrel", "webrick"
0
+  when "lighttpd", "mongrel", "new_mongrel", "webrick", "thin"
0
     ARGV.shift
0
   else
0
-    if defined?(Mongrel)
0
+    if defined?(Thin)
0
+      "thin"
0
+    elsif defined?(Mongrel)
0
       "mongrel"
0
     elsif RUBY_PLATFORM !~ /(:?mswin|mingw)/ && !silence_stderr { `lighttpd -version` }.blank? && defined?(FCGI)
0
       "lighttpd"
0
@@ -33,6 +41,8 @@ case server
0
     puts "=> Booting lighttpd (use 'script/server webrick' to force WEBrick)"
0
   when "mongrel", "new_mongrel"
0
     puts "=> Booting Mongrel (use 'script/server webrick' to force WEBrick)"
0
+  when "thin"
0
+    puts "=> Booting Thin (use 'script/server webrick' to force WEBrick)"
0
 end
0
 
0
 %w(cache pids sessions sockets).each { |dir_to_make| FileUtils.mkdir_p(File.join(RAILS_ROOT, 'tmp', dir_to_make)) }

Comments