Skip to content

Instantly share code, notes, and snippets.

@damuz91
Created April 15, 2022 20:16
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 damuz91/57c006f840b4ef8444807baf412c2968 to your computer and use it in GitHub Desktop.
Save damuz91/57c006f840b4ef8444807baf412c2968 to your computer and use it in GitHub Desktop.
My puma production configuration file for AL2
rails_env = "production"
environment rails_env
app_dir = File.expand_path("../../..", __FILE__)
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 3
threads 1,2
daemonize true
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