Skip to content

Instantly share code, notes, and snippets.

@damuz91
Last active August 28, 2020 23:53
Show Gist options
  • Save damuz91/967664c9caf04cae13b40c5bc3357f3c to your computer and use it in GitHub Desktop.
Save damuz91/967664c9caf04cae13b40c5bc3357f3c to your computer and use it in GitHub Desktop.
My puma production config file
# Place in /config/puma/production.rb
rails_env = "production"
environment rails_env
app_dir = "/path/to/my/rails-app" # Update me with your root rails app path
bind "unix://#{app_dir}/puma.sock"
pidfile "#{app_dir}/puma.pid"
state_path "#{app_dir}/puma.state"
directory "#{app_dir}/"
stdout_redirect "#{app_dir}/log/puma.stdout.log", "#{app_dir}/log/puma.stderr.log", true
workers 2
threads 1,2
activate_control_app "unix://#{app_dir}/pumactl.sock"
prune_bundler
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment