Skip to content

Instantly share code, notes, and snippets.

@pglombardo
pglombardo / puma.rb
Last active August 29, 2015 14:16
TraceView, Heroku & the Puma Webserver
workers Integer(ENV['WEB_CONCURRENCY'] || 2)
threads_count = Integer(ENV['MAX_THREADS'] || 5)
threads threads_count, threads_count
preload_app!
rackup DefaultRackup
port ENV['PORT'] || 3000
environment ENV['RACK_ENV'] || 'development'