Sha256: 8c12060cfb4fbbb4756a087b326623bf7ed4a8d1be1992562a3fdb4360a0e1d1
Contents?: true
Size: 1006 Bytes
Versions: 2
Compression:
Stored size: 1006 Bytes
Contents
directory '<%= current_path %>' environment '<%= fetch(:rack_env, fetch(:rails_env, "production")) %>' daemonize false quiet pidfile '<%= fetch(:runit_puma_pid)%>' state_path '<%= fetch(:runit_puma_state)%>' stdout_redirect '<%= fetch(:runit_puma_log)%>', '<%= fetch(:runit_puma_log)%>', true workers <%= fetch(:runit_puma_workers, 1) %> threads <%= fetch(:runit_puma_threads_min, 0) %>, <%= fetch(:runit_puma_threads_max, 16) %> bind "<%= host.fetch(:runit_puma_bind) or fetch(:runit_puma_bind) %>" <% if fetch(:runit_puma_preload_app) %> preload_app! <% end %> on_restart do puts 'Refreshing Gemfile' ENV["BUNDLE_GEMFILE"] = "<%= fetch(:bundle_gemfile, "#{current_path}/Gemfile") %>" end <% if fetch(:runit_puma_init_active_record) %> on_worker_boot do ::ActiveSupport.on_load(:active_record) do ::ActiveRecord::Base.establish_connection end end <% end %> <% unless fetch(:runit_puma_on_worker_boot, nil).nil? %> on_worker_boot do <%= fetch(:runit_puma_on_worker_boot) %> end <% end %>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
capistrano-runit-puma-0.2.1 | lib/capistrano/templates/puma.rb.erb |
capistrano-runit-puma-0.2.0 | lib/capistrano/templates/puma.rb.erb |