Escolar Documentos
Profissional Documentos
Cultura Documentos
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
$ 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