Last active
August 28, 2020 23:53
-
-
Save damuz91/967664c9caf04cae13b40c5bc3357f3c to your computer and use it in GitHub Desktop.
My puma production config file
This file contains hidden or 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
# 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