Skip to content

Commit

Permalink
Merge pull request #118 from hbin/master
Browse files Browse the repository at this point in the history
Don't need establish connection block if `puma_preload_app' set to false
  • Loading branch information
seuros committed Aug 5, 2015
2 parents fc282b2 + 58ce7ad commit 4a76e49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/capistrano/templates/puma.rb.erb
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4a76e49

Please sign in to comment.