Sha256: 75e7d2d728e60566b688f8631e4720f522e00bbe0e639bf3fcec9d0a2e00fde1

Contents?: true

Size: 1.02 KB

Versions: 11

Compression:

Stored size: 1.02 KB

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 %>
<% if fetch(:puma_control_app) %>
activate_control_app "<%= fetch(:puma_default_control_app) %>"
<% end %>
workers <%= puma_workers %>
<% if fetch(:puma_worker_timeout) %>
worker_timeout <%= fetch(:puma_worker_timeout).to_i %>
<% end %>

<% if puma_preload_app? %>
preload_app!
<% else %>
prune_bundler
<% end %>

on_restart do
  puts 'Refreshing Gemfile'
  ENV["BUNDLE_GEMFILE"] = "<%= fetch(:bundle_gemfile, "#{current_path}/Gemfile") %>"
end

<% if puma_preload_app? and 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

11 entries across 11 versions & 2 rubygems

Version Path
negroku-2.8.6 lib/negroku/capistrano/templates/puma.rb.erb
negroku-2.8.5 lib/negroku/capistrano/templates/puma.rb.erb
negroku-2.8.4 lib/negroku/capistrano/templates/puma.rb.erb
negroku-2.8.3 lib/negroku/capistrano/templates/puma.rb.erb
negroku-2.8.2 lib/negroku/capistrano/templates/puma.rb.erb
negroku-2.8.1 lib/negroku/capistrano/templates/puma.rb.erb
negroku-2.8.0 lib/negroku/capistrano/templates/puma.rb.erb
negroku-2.7.1 lib/negroku/capistrano/templates/puma.rb.erb
negroku-2.7.0 lib/negroku/capistrano/templates/puma.rb.erb
capistrano3-puma-1.2.1 lib/capistrano/templates/puma.rb.erb
capistrano3-puma-1.2.0 lib/capistrano/templates/puma.rb.erb