Sha256: 1df9b6540960fd6ff338388e937a71b6f0a72b2d072c720970f9b20ea1a0a091
Contents?: true
Size: 911 Bytes
Versions: 5
Compression:
Stored size: 911 Bytes
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 %> 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(',')%> <%= puma_bind %> workers <%= puma_workers %> <% if fetch(:puma_worker_timeout) %> worker_timeout <%= fetch(:puma_worker_timeout).to_i %> <% end %> <% 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
5 entries across 5 versions & 2 rubygems