Skip to content

Instantly share code, notes, and snippets.

@gjastrab

gjastrab/puma.rb Secret

Created April 28, 2016 15:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gjastrab/37d9e6f201be1be2165f65fad5df0182 to your computer and use it in GitHub Desktop.
Save gjastrab/37d9e6f201be1be2165f65fad5df0182 to your computer and use it in GitHub Desktop.
Production Puma Config
directory '/path/to/app'
environment 'production'
daemonize true
pidfile 'tmp/pids/puma.pid'
state_path 'tmp/pids/puma.state'
stdout_redirect 'log/puma.stdout', 'log/puma.stderr', true
bind 'unix:///path/to/puma.sock'
restart_command 'bundle exec puma'
workers 4
threads 0,6
prune_bundler
tag 'My App Name'
activate_control_app 'unix:///path/to/puma-ctl.sock', { no_token: true }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment