Created
April 15, 2022 20:16
-
-
Save damuz91/57c006f840b4ef8444807baf412c2968 to your computer and use it in GitHub Desktop.
My puma production configuration file for AL2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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