Você está na página 1de 22

thin

http://code.macournoyer.com/thin/
what?
replacement for
mongrel
Ruby web server
glues three Ruby
libraries
mongrel parser
eventmachine
rack
why?
more active
development
nicer to use
how?
$ sudo gem install rack

$ sudo gem install thin eventmachine \


--source http://code.macournoyer.com
development
$ cd /to/my/rails/app
$ thin start
>> Using rails adapter
>> Thin web server (v0.8.0 codename Dodgy
Dentist)
>> Threaded mode OFF
>> Maximum connections set to 1024
>> Listening on 0.0.0.0:3000, CTRL+C to stop
$ cd /to/my/rails/app
$ thin -d start

$ script/console
$ script/generate stuff
$ tail -f log/development.log

$ thin stop
production
# example config/thin.yml
---
pid: tmp/pids/thin.pid
log: log/thin.log
max_conns: 1024
timeout: 30
max_persistent_conns: 512
daemonize: true
environment: production
chdir: /path/to/your/app
servers: 2
port: 8000
$ thin -C /path/to/thin.yml start
plays well with cap
and god
Resources:
salesforceonrails.com/tags/thin

Você também pode gostar