Sha256: 11a71b52e6f92de1e232515bc07dc4e20f05ac679b297ccfc363efccf08cc202

Contents?: true

Size: 1.08 KB

Versions: 2

Compression:

Stored size: 1.08 KB

Contents

# Puma configuration for:
# <%= "#{fetch(:application)} running as #{fetch(:user)} in environment #{environment}" %>
workers <%= fetch(:puma_workers) %>
threads <%= fetch(:puma_min_threads) %>, <%= fetch(:puma_max_threads) %>
bind '<%= fetch(:puma_socket_url) %>'
pidfile '<%= fetch(:puma_pid_file) %>'
state_path '<%= fetch(:puma_state_file) %>'
environment '<%= "#{environment}" %>'
<%= "activate_control_app '#{fetch(:puma_control_url)}'" if fetch(:puma_activate_control_app) %>

<% if fetch(:puma_use_preload_app) %>
# In some cases preloading the app is best to avoid some infinite restart loops, however,
# it cannot be used it combination with phased restart.
<%= "preload_app!" %>
<% end %>

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

directory '<%= current_path %>'

<% if fetch(:puma_before_fork) != nil %>
before_fork do
<%= fetch(:puma_before_fork) %>
end
<% end %>

<% if fetch(:puma_on_worker_boot) != nil %>
on_worker_boot do
<%= fetch(:puma_on_worker_boot) %>
end
<% end %>

<% if fetch(:puma_on_restart) != nil %>
on_restart do
<%= fetch(:puma_on_restart) %>
end
<% end %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
capistrano-pumaio-3.1.6 templates/puma-config.rb.erb
capistrano-pumaio-3.1.4 templates/puma-config.rb.erb