Skip to content

Instantly share code, notes, and snippets.

@kirillshevch
Created February 27, 2017 16:13
Show Gist options
  • Select an option

  • Save kirillshevch/848d3d76705da76fe87c8e8f71af5dac to your computer and use it in GitHub Desktop.

Select an option

Save kirillshevch/848d3d76705da76fe87c8e8f71af5dac to your computer and use it in GitHub Desktop.
config/puma.rb
return if Rails.env.test? || Rails.env.development? rescue nil
app_path = '/home/deployer/www/translations'
directory "#{app_path}/current"
rackup "#{app_path}/current/config.ru"
daemonize true
pidfile "#{app_path}/shared/tmp/pids/puma.pid"
state_path "#{app_path}/shared/tmp/puma.state"
workers 2
threads 6, 6
bind "unix:#{app_path}/shared/tmp/sockets/puma.sock"
preload_app!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment