lib/capistrano/templates/puma.rb.erb in capistrano3-puma-0.8.5 vs lib/capistrano/templates/puma.rb.erb in capistrano3-puma-0.9.0

- old
+ new

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