Skip to content

Commit b34588b

Browse files
committed
Update templates to target Puma 7
1 parent 89accb9 commit b34588b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/template/Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ ruby "2.4.0"
44
gem "pg"
55
gem "pliny", "~> 0.32"
66
gem "pry"
7-
gem "puma", "~> 6"
7+
gem "puma", "~> 7"
88
gem "rack-ssl"
99
gem "rack-timeout", "~> 0.6"
1010
gem "rake"

lib/template/config/puma.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
threads Config.puma_min_threads, Config.puma_max_threads
77
workers Config.puma_workers
88

9-
on_worker_boot do
9+
before_worker_boot do
1010
# force Sequel's thread pool to be refreshed
1111
Sequel::DATABASES.each(&:disconnect)
1212
end

0 commit comments

Comments
 (0)