Skip to content
This repository has been archived by the owner on Dec 31, 2022. It is now read-only.

Commit

Permalink
fix(appserver): fixed Puma config compatibility with older versions o…
Browse files Browse the repository at this point in the history
…f Puma

Resolves #207
  • Loading branch information
ajgon committed Mar 3, 2019
1 parent 37ffb8d commit eebdc23
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/default/puma.rb.erb
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ end
# end
on_worker_fork do |worker_id|
<%= @out[:on_worker_fork] || 'puts "Before worker #{worker_id} fork..."' %>
end
end if Gem.loaded_specs['puma'].version >= Gem::Version.new('3.4.0')

# Code to run in the master after a worker has been started. The worker's
# index is passed as an argument.
Expand All @@ -138,7 +138,7 @@ end
# end
after_worker_fork do |worker_id|
<%= @out[:after_worker_fork] || 'puts "After worker #{worker_id} fork..."' %>
end
end if Gem.loaded_specs['puma'].version >= Gem::Version.new('3.4.0')

# Change the default timeout of worker startup
# The default is 60
Expand Down

0 comments on commit eebdc23

Please sign in to comment.