diff --git a/lib/capistrano/templates/puma.rb.erb b/lib/capistrano/templates/puma.rb.erb old mode 100644 new mode 100755 index 70e72ab..e5117be --- a/lib/capistrano/templates/puma.rb.erb +++ b/lib/capistrano/templates/puma.rb.erb @@ -33,7 +33,7 @@ on_restart do ENV["BUNDLE_GEMFILE"] = "<%= fetch(:bundle_gemfile, "#{current_path}/Gemfile") %>" end -<% if fetch(:puma_init_active_record) %> +<% if puma_preload_app? and fetch(:puma_init_active_record) %> on_worker_boot do ActiveSupport.on_load(:active_record) do ActiveRecord::Base.establish_connection