Sha256: 3af72796dbdda81f690bccbdcaedd8135d13954cdcfff386d71552fb49beccc4

Contents?: true

Size: 790 Bytes

Versions: 17

Compression:

Stored size: 790 Bytes

Contents

directory "<%=current_path%>"
environment "<%= fetch(:rails_env, 'production') %>"
daemonize true

worker_timeout <%= fetch(:app_server_timeout, 60) %>
worker_boot_timeout <%= fetch(:app_server_timeout, fetch(:app_server_timeout, 60)) %>

pidfile '<%="#{shared_path}/pids/puma.pid"%>'
state_path '<%="#{shared_path}/pids/puma.state"%>'
stdout_redirect "<%="#{shared_path}/log/puma.stdout.log"%>", "<%="#{shared_path}/log/puma.stderr.log"%>", true

threads <%= fetch(:app_server_min_threads, 0) %>, <%= fetch(:app_server_max_threads, 8) %>
bind "<%="tcp://#{fetch(:app_server_host)}:#{fetch(:app_server_port)}"%>"
workers <%= fetch(:app_server_workers, 4) %>

preload_app!

on_worker_boot do
  ActiveSupport.on_load(:active_record) do
    ActiveRecord::Base.establish_connection
  end
end


Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
capistrano-unformatt-2.1 vendor/templates/puma.rb.erb
capistrano-unformatt-2.0 vendor/templates/puma.rb.erb
capistrano-unformatt-1.16 vendor/templates/puma.rb.erb
capistrano-unformatt-1.15 vendor/templates/puma.rb.erb
capistrano-unformatt-1.14.1 vendor/templates/puma.rb.erb
capistrano-unformatt-1.14 vendor/templates/puma.rb.erb
capistrano-unformatt-1.13 vendor/templates/puma.rb.erb
capistrano-unformatt-1.12 vendor/templates/puma.rb.erb
capistrano-unformatt-1.11 vendor/templates/puma.rb.erb
capistrano-unformatt-1.10 vendor/templates/puma.rb.erb
capistrano-unformatt-1.9 vendor/templates/puma.rb.erb
capistrano-unformatt-1.8 vendor/templates/puma.rb.erb
capistrano-unformatt-1.7 vendor/templates/puma.rb.erb
capistrano-unformatt-1.6 vendor/templates/puma.rb.erb
capistrano-unformatt-1.5 vendor/templates/puma.rb.erb
capistrano-unformatt-1.4 vendor/templates/puma.rb.erb
capistrano-unformatt-1.3 vendor/templates/puma.rb.erb