Created
August 15, 2018 16:42
-
-
Save ravzski/4a929bea92c247f31dfc34f10ad62691 to your computer and use it in GitHub Desktop.
puma unix
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
set :puma_bind, "unix://#{shared_path}/tmp/sockets/#{fetch(:application)}-puma.sock" | |
set :puma_state, "#{shared_path}/tmp/pids/puma.state" | |
set :puma_pid, "#{shared_path}/tmp/pids/puma.pid" | |
set :puma_access_log, "#{release_path}/log/puma.error.log" | |
set :puma_error_log, "#{release_path}/log/puma.access.log" |
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
bind 'unix:///home/ubuntu/railstest/shared/tmp/sockets/sp-puma.sock'; | |
workers 1 | |
on_restart do | |
puts 'On restart...' | |
end |
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
upstream yourapp { | |
server unix:///home/ubuntu/railstest/shared/tmp/sockets/sp-puma.sock; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment