public
Description: A very fast & simple Ruby web server
Homepage: http://code.macournoyer.com/thin/
Clone URL: git://github.com/macournoyer/thin.git
update README
macournoyer (author)
Mon Feb 11 19:29:29 -0800 2008
commit  0e9456839519df647f6f79a3833db0487f96fad6
tree    20dc71b85bb9072ad161d549a238c2128847b928
parent  65d6456c887e7dd105db0a9edadde346c4f955a9
0
...
2
3
4
5
6
7
 
 
 
 
8
9
10
...
24
25
26
27
 
28
29
30
31
32
33
 
 
34
35
36
37
 
38
39
40
...
47
48
49
50
51
 
 
52
53
 
54
55
56
...
2
3
4
 
 
 
5
6
7
8
9
10
11
...
25
26
27
 
28
29
30
31
32
 
 
33
34
35
 
 
 
36
37
38
39
...
46
47
48
 
 
49
50
51
 
52
53
54
55
0
@@ -2,9 +2,10 @@
0
 Tiny, fast & funny HTTP server
0
 
0
 Thin is a Ruby web server that glues together 3 of the best Ruby libraries in web history:
0
- * the Mongrel parser: the root of Mongrel speed and security
0
- * Event Machine: a network I/O library with extremely high scalability, performance and stability
0
- * Rack: a minimal interface between webservers and Ruby frameworks
0
+* the Mongrel parser: the root of Mongrel speed and security
0
+* Event Machine: a network I/O library with extremely high scalability, performance and stability
0
+* Rack: a minimal interface between webservers and Ruby frameworks
0
+
0
 Which makes it, with all humility, the most secure, stable, fast and extensible Ruby web server
0
 bundled in an easy to use gem for your own pleasure.
0
 
0
@@ -24,17 +25,15 @@ Or from source:
0
  rake install
0
 
0
 === Usage
0
-A +thin+ script is offered to easily start your Rails application:
0
+A +thin+ script offers an easy way to start your Rails application:
0
 
0
  cd to/your/rails/app
0
  thin start
0
 
0
-But Thin is also usable through Rack +rackup+ command.
0
-You need to setup a config.ru file and require thin in it:
0
+But Thin is also usable with a Rack config file.
0
+You need to setup a config.ru file and pass it to the thin script:
0
   
0
- cat <<EOS
0
- require 'thin'
0
-
0
+ cat config.ru
0
  app = proc do |env|
0
   [
0
     200,
0
@@ -47,10 +46,10 @@ You need to setup a config.ru file and require thin in it:
0
  end
0
  
0
  run app
0
- EOS
0
- rackup -s thin
0
+
0
+ thin start -r config.ru
0
  
0
-See example/config.ru for details and rackup -h
0
+See example directory for more samples and run 'thin -h' for usage.
0
 
0
 === License
0
 Ruby License, http://www.ruby-lang.org/en/LICENSE.txt.

Comments

    No one has commented yet.