lib/capistrano/templates/puma.rb.erb in capistrano3-puma-1.0.0 vs lib/capistrano/templates/puma.rb.erb in capistrano3-puma-1.1.0

- old
+ new

@@ -20,19 +20,19 @@ workers <%= puma_workers %> <% if fetch(:puma_worker_timeout) %> worker_timeout <%= fetch(:puma_worker_timeout).to_i %> <% end %> -<% if puma_preload_app? %> +<% if puma_preload_app? %> preload_app! +<% else %> +prune_bundler +<% end %> on_restart do puts 'Refreshing Gemfile' ENV["BUNDLE_GEMFILE"] = "<%= fetch(:bundle_gemfile, "#{current_path}/Gemfile") %>" end -<% else %> -prune_bundler -<% end %> <% if fetch(:puma_init_active_record) %> on_worker_boot do ActiveSupport.on_load(:active_record) do ActiveRecord::Base.establish_connection