Update to puma 7 (#36238)
This commit is contained in:
2
Gemfile
2
Gemfile
@@ -4,7 +4,7 @@ source 'https://rubygems.org'
|
|||||||
ruby '>= 3.2.0', '< 3.5.0'
|
ruby '>= 3.2.0', '< 3.5.0'
|
||||||
|
|
||||||
gem 'propshaft'
|
gem 'propshaft'
|
||||||
gem 'puma', '~> 6.3'
|
gem 'puma', '~> 7.0'
|
||||||
gem 'rails', '~> 8.0'
|
gem 'rails', '~> 8.0'
|
||||||
gem 'thor', '~> 1.2'
|
gem 'thor', '~> 1.2'
|
||||||
|
|
||||||
|
|||||||
@@ -637,7 +637,7 @@ GEM
|
|||||||
date
|
date
|
||||||
stringio
|
stringio
|
||||||
public_suffix (6.0.2)
|
public_suffix (6.0.2)
|
||||||
puma (6.6.1)
|
puma (7.0.3)
|
||||||
nio4r (~> 2.0)
|
nio4r (~> 2.0)
|
||||||
pundit (2.5.1)
|
pundit (2.5.1)
|
||||||
activesupport (>= 3.0.0)
|
activesupport (>= 3.0.0)
|
||||||
@@ -1052,7 +1052,7 @@ DEPENDENCIES
|
|||||||
prometheus_exporter (~> 2.2)
|
prometheus_exporter (~> 2.2)
|
||||||
propshaft
|
propshaft
|
||||||
public_suffix (~> 6.0)
|
public_suffix (~> 6.0)
|
||||||
puma (~> 6.3)
|
puma (~> 7.0)
|
||||||
pundit (~> 2.3)
|
pundit (~> 2.3)
|
||||||
rack-attack (~> 6.6)
|
rack-attack (~> 6.6)
|
||||||
rack-cors
|
rack-cors
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ if ENV['MASTODON_PROMETHEUS_EXPORTER_ENABLED'] == 'true'
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
on_worker_boot do
|
before_worker_boot do
|
||||||
# Ruby process metrics (memory, GC, etc)
|
# Ruby process metrics (memory, GC, etc)
|
||||||
PrometheusExporter::Instrumentation::Process.start(type: 'puma')
|
PrometheusExporter::Instrumentation::Process.start(type: 'puma')
|
||||||
|
|
||||||
@@ -44,7 +44,7 @@ if ENV['MASTODON_PROMETHEUS_EXPORTER_ENABLED'] == 'true'
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
on_worker_boot do
|
before_worker_boot do
|
||||||
ActiveSupport.on_load(:active_record) do
|
ActiveSupport.on_load(:active_record) do
|
||||||
ActiveRecord::Base.establish_connection
|
ActiveRecord::Base.establish_connection
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user