# 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 %>