Sha256: 8ccaac07e3f729282caf9d92df861dd059a62e4a9aeb2d762a01444a429b9907

Contents?: true

Size: 1.52 KB

Versions: 10

Compression:

Stored size: 1.52 KB

Contents

# Puma: A Ruby Web Server Built For Concurrency

## Description

Puma is a small library that provides a very fast and concurrent HTTP 1.1 server for Ruby web applications.  It is designed for running rack apps only.

What makes Puma so fast is the careful use of an Ragel extension to provide fast, accurate HTTP 1.1 protocol parsing. This makes the server scream without too many portability issues.

## License

Puma is copyright 2011 Evan Phoenix and contributors. It is licensed under the BSD license. See the include LICENSE file for details.

## Quick Start

The easiest way to get started with Puma is to install it via RubyGems and then run a Ruby on Rails application. You can do this easily:

    $ gem install puma

Now you should have the puma command available in your PATH, so just do the following:

    $ puma app.ru

## Install

    $ gem install puma

## Advanced Setup

### Sinatra

You can run your Sinatra application with Puma from the command line like this:

    $ ruby app.rb -s Puma

Or you can configure your application to always use Puma:

    require 'sinatra'
    configure { set :server, :puma }

If you use Bundler, make sure you add Puma to your Gemfile (see below).

### Rails

First, make sure Puma is in your Gemfile:

    gem 'puma'

Then start your server with the `rails` command:

    $ rails s puma

### Rackup

You can pass it as an option to `rackup`:

    $ rackup -s puma

Alternatively, you can modify your `config.ru` to choose Puma by default, by adding the following as the first line:

    #\ -s puma

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
puma-0.9.2-java README.md
puma-0.9.2 README.md
puma-0.9.1-java README.md
puma-0.9.1 README.md
puma-0.9.0-java README.md
puma-0.9.0 README.md
puma-0.8.2-java README.md
puma-0.8.2 README.md
puma-0.8.1 README.md
puma-0.8.0 README.md