celluloid/reel — pull request #3 by afcapel (2012-08-04 13:37:14+00:00)
Title: Support to use Reel with rack applications

The server simply delegates rack request to a pool of Reel::RackWorkers which include Celluloid, and so each operates in its own thread.

I've also added a simple option parser to change server configuration from the command line. These are the implemented options:

```
reel
-p, --port PORT Define what port TCP port to bind to (default: 3000)
-a, --address HOST bind to HOST address (default: 0.0.0.0)
-q, --quiet Quiet down the output
-e, --environment ENVIRONMENT The environment to run the Rack app on (default: development)
-t, --threads NUM The number of worker threads (default: 10)
-r, --rackup FILE Load Rack config from this file (default: config.ru)
-h, --help Show help
```

To use with rails, just add the reel gem to your Gemfile and start the server with

```rails s reel```