Sha256: d78a853689512581d7ce994e704e17cbab1ff523c6ddf4c89ac9065d57f3849b

Contents?: true

Size: 1.79 KB

Versions: 1

Compression:

Stored size: 1.79 KB

Contents

# rack-handlers

by Lin Jen-Shin ([godfat](http://godfat.org))

## LINKS:

* [github](https://github.com/godfat/rack-handlers)
* [rubygems](https://rubygems.org/gems/rack-handlers)
* [rdoc](http://rdoc.info/github/godfat/rack-handlers)

## DESCRIPTION:

Unicorn family Rack handlers for you. Mostly for `rails s`.

## REQUIREMENTS:

* Rack
* The web server you want to use (e.g. unicorn, yahns, rainbows, zbatery, etc)

## INSTALLATION:

    gem install rack-handlers

## SYNOPSIS:

Put `'rack-handlers'` and your favorite unicorns into Gemfile
then you could do the followings:

    rails s unicorn
    rails s yahns
    rails s rainbows
    rails s zbatery

Because requiring `'rack-handlers'` would make `Rack::Handler.default`
pick the server with the following order:

* yahns
* zbatery
* rainbows
* unicorn
* torquebox (for jruby)
* trinidad (for jruby)
* puma
* thin
* webrick

Thus if you have rainbows installed, `rails s` would launch the server with
rainbows instead of webrick (the original behaviour).

Additionally, it would also try to load the config via `config/yahns.rb`,
or `config/unicorn.rb` depending on which server is picked.

For people who likes to run `rails s`!

## CONTRIBUTORS:

* Lin Jen-Shin (@godfat)

## LICENSE:

Apache License 2.0

Copyright (c) 2012-2016, Lin Jen-Shin (godfat)

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

<http://www.apache.org/licenses/LICENSE-2.0>

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rack-handlers-0.7.2 README.md