Sha256: 42f7fa8b79984c7a6153ccfcd16dd8c0a03fed0acdffba5447fefb6170ef0e5c

Contents?: true

Size: 771 Bytes

Versions: 2

Compression:

Stored size: 771 Bytes

Contents

#!/usr/bin/env puma

directory '<%= current_path %>'
rackup "<%=fetch(:puma_rackup)%>"
environment '<%= fetch(:puma_env) %>'
<%= puma_tag %>
daemonize true
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(',')%>
bind "<%=fetch(:puma_bind)%>"


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

on_restart do
  puts 'Refreshing Gemfile'
  ENV["BUNDLE_GEMFILE"] = "<%= fetch(:bundle_gemfile, "#{current_path}/Gemfile") %>"
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

2 entries across 2 versions & 1 rubygems

Version Path
capistrano3-puma-0.3.7 lib/capistrano/templates/puma.rb.erb
capistrano3-puma-0.3.3 lib/capistrano/templates/puma.rb.erb