Registry / web-framework / puma
library8.0.2rbrubygemsunverified

Puma is a simple, fast, multi-threaded, and highly parallel HTTP 1.1 server for Ruby/Rack applications, suitable for both development and production.

gem install puma
INSTALL
IMPORT
SIG · PUMA
P
puma
web-frameworkrubyv8.0.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Puma
require 'puma'

Start a minimal Puma server with a Rack app

require 'puma' app = ->(env) { [200, {}, ['Hello World']] } server = Puma::Server.new(app) server.add_tcp_listener('0.0.0.0', 9292) server.run
Debug
Known issues
gotchaPuma's default single mode is not thread-safe for most Rails apps; you must configure workers and threads appropriately.
fix
Set workers and threads in your Puma config file, e.g., workers 2, threads_count 4.
affects: >= 4.0.0
Upgrade
Version history
8.0.2latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
Amazon
1
Resources
puma — gem install puma · libregistry