ssk’s posterous

ssk’s posterous

May 26 / 10:36pm

Thin: A Ruby HTTP Daemon That’s Faster Than Mongrel

by ssk

Thin is a new Web server / daemon written in Ruby by Marc-André Cournoyer that uses the EventMachine, Rack, and Mongrel libraries. EventMachine makes it super fast at processing network I/O, Rack makes it easy to integrate with existing Ruby Web app frameworks, and Mongrel helps it parse HTTP. So, yes, the title is slightly misleading. Thin actually relies on Mongrel, but is ultimately faster than it, even against Mongrel's EventMachine-enhanced guise.

 via http://www.rubyinside.com/thin-a-ruby-http-daemon-thats-faster-than-mongrel-688.html

Filed under  //  rails   thin  

Comments (0)

May 25 / 12:06am

rails : thin : 1.0.0 だと rails 1.2.5 で動くっぽい。 - hdknr's posterous

by ssk
rails : thin : 1.0.0 だと rails 1.2.5 で動くっぽい。
hdknr@deblen:~/rails/tapp$ sudo gem install eventmachine
Building native extensions. This could take a while...
Successfully installed eventmachine-0.12.6
1 gem installed
Installing ri documentation for eventmachine-0.12.6...
Installing RDoc documentation for eventmachine-0.12.6...

hdknr@deblen:~/rails/tapp$ thin start
>> Using rails adapter
/home/hdknr/rails/tapp/config/boot.rb:20:Warning: Gem::SourceIndex#search support for String patterns is deprecated
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb:266:in `load_missing_constant': uninitialized constant ActionController::Dispatcher (NameError)
from /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb:452:in `const_missing'
from /usr/local/lib/ruby/gems/1.8/gems/thin-1.2.1/lib/rack/adapter/rails.rb:25:in `initialize'
from /usr/local/lib/ruby/gems/1.8/gems/thin-1.2.1/lib/rack/adapter/loader.rb:36:in `new'
from /usr/local/lib/ruby/gems/1.8/gems/thin-1.2.1/lib/rack/adapter/loader.rb:36:in `for'
from /usr/local/lib/ruby/gems/1.8/gems/thin-1.2.1/lib/thin/controllers/controller.rb:163:in `load_adapter'
from /usr/local/lib/ruby/gems/1.8/gems/thin-1.2.1/lib/thin/controllers/controller.rb:67:in `start'
from /usr/local/lib/ruby/gems/1.8/gems/thin-1.2.1/lib/thin/runner.rb:173:in `send'
from /usr/local/lib/ruby/gems/1.8/gems/thin-1.2.1/lib/thin/runner.rb:173:in `run_command'
from /usr/local/lib/ruby/gems/1.8/gems/thin-1.2.1/lib/thin/runner.rb:139:in `run!'
from /usr/local/lib/ruby/gems/1.8/gems/thin-1.2.1/bin/thin:6
from /usr/local/bin/thin:19:in `load'
from /usr/local/bin/thin:19

hdknr@deblen:~/rails/tapp$ sudo gem uninstall thin -I
Remove executables:
thin

in addition to the gem? [Yn] y
Removing thin
Successfully uninstalled thin-1.2.1

hdknr@deblen:~/rails/tapp$ sudo gem install thin -v 1.0.0
Building native extensions. This could take a while...
Successfully installed thin-1.0.0
1 gem installed
Installing ri documentation for thin-1.0.0...
Installing RDoc documentation for thin-1.0.0...

hdknr@deblen:~/rails/tapp$ thin start
>> Using rails adapter
/home/hdknr/rails/tapp/config/boot.rb:20:Warning: Gem::SourceIndex#search support for String patterns is deprecated
>> Thin web server (v1.0.0 codename That's What She Said)
>> Maximum connections set to 1024
>> Listening on 0.0.0.0:3000, CTRL+C to stop


うごいたっぽい。

hdknr@deblen:~/rails/tapp$ rails -v
Rails 1.2.5



Favorite this

Read more: "rails : thin : 1.0.0 だと rails 1.2.5 で動くっぽい。 - hdknr's posterous" - http://hdknr.posterous.com/rails-thin-100-rails-125#ixzz0GV26YZno&A

via http://hdknr.posterous.com/rails-thin-100-rails-125

Filed under  //  rails   thin  

Comments (0)