Project

puma-rails

0.01
No commit activity in last 3 years
No release in over 3 years
puma-rails overrides the Rack::Handler.default method to return Rack::Handler::Puma which will cause rack (and rails) to use puma by default.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 0
>= 0
 Project Readme

puma-rails

puma-rails is a simple gem that sets the default server for rack (and rails) to puma.

Description

puma-rails overrides the Rack::Handler.default method to return Rack::Handler::Puma which will cause rack (and rails) to use puma by default.

Installation

Add this line to your application's Gemfile:

gem "puma-rails"

And then bundle:

$ bundle install

Also, puma is a dependency of puma-rails so you don't need a gem 'puma' entry in your Gemfile.

There's no version of puma set in puma-rails so you can use whatever version you want by either adding an entry in your Gemfile or installing it manually with gem install puma -v=2.10.2 before you bundle.

Usage

Add the puma-rails gem to your Gemfile and then rails server will default to using puma.

$ rails s
=> Booting Puma
=> Rails 3.2.21 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
Puma 2.11.1 starting...
* Min threads: 0, max threads: 16
* Environment: development
* Listening on tcp://0.0.0.0:3000