Sha256: 82c665ca19e1a660a8bb46e9f9b95f3705ac0f5fd46269c2da361bfc8f9cb2e1

Contents?: true

Size: 825 Bytes

Versions: 5

Compression:

Stored size: 825 Bytes

Contents

#!/usr/bin/env puma

directory '<%= current_path %>'
rackup "<%=fetch(:puma_rackup)%>"
environment '<%= fetch(:puma_env) %>'
<% if fetch(:puma_tag) %>
  tag '<%= fetch(:puma_tag)%>'
<% end %>
pidfile "<%=fetch(:puma_pid)%>"
state_path "<%=fetch(:puma_state)%>"
stdout_redirect '<%=fetch(:puma_access_log)%>', '<%=fetch(:puma_error_log)%>', true


threads <%=fetch(:puma_threads).join(',')%>

<%= puma_bind %>
workers <%= puma_workers %>
<% if fetch(:puma_worker_timeout) %>
worker_timeout <%= fetch(:puma_worker_timeout).to_i %>
<% end %>

<% if fetch(:puma_preload_app) %>
preload_app!
<% end %>

<% if fetch(:puma_prune_bundler) %>
prune_bundler
<% end %>

<% if fetch(:puma_init_active_record) %>
on_worker_boot do
  ActiveSupport.on_load(:active_record) do
    ActiveRecord::Base.establish_connection
  end
end
<% end %>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
capistrano3-puma-0.8.5 lib/capistrano/templates/puma.rb.erb
capistrano3-puma-0.8.4 lib/capistrano/templates/puma.rb.erb
capistrano3-puma-0.8.3 lib/capistrano/templates/puma.rb.erb
capistrano3-puma-0.8.2 lib/capistrano/templates/puma.rb.erb
capistrano3-puma-0.8.1 lib/capistrano/templates/puma.rb.erb