net-http-rails
net-http-rails is a simple gem that sets the default server for rack (and rails) to net-http-server.
Description
net-http-rails overrides the Rack::Handler.default
method to return Rack::Handler::HTTP
which will cause rack (and rails) to use net-hhtp-server by default.
Installation
Add this line to your application's Gemfile
:
gem "net-http-rails"
And then execute:
$ bundle install
Usage
Just add the gem to your Gemfile
and then rails server
will default to using net-http-server.
TODO
add tests
Credits
5 lines of code here but i copied it from thin-rails.
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request