mirror of
https://github.com/yingziwu/mastodon.git
synced 2026-02-04 03:25:14 +00:00
Update to puma 7 (#36238)
This commit is contained in:
parent
82f5901a3f
commit
37cec638df
3 changed files with 5 additions and 5 deletions
|
|
@ -27,7 +27,7 @@ if ENV['MASTODON_PROMETHEUS_EXPORTER_ENABLED'] == 'true'
|
|||
end
|
||||
end
|
||||
|
||||
on_worker_boot do
|
||||
before_worker_boot do
|
||||
# Ruby process metrics (memory, GC, etc)
|
||||
PrometheusExporter::Instrumentation::Process.start(type: 'puma')
|
||||
|
||||
|
|
@ -44,7 +44,7 @@ if ENV['MASTODON_PROMETHEUS_EXPORTER_ENABLED'] == 'true'
|
|||
end
|
||||
end
|
||||
|
||||
on_worker_boot do
|
||||
before_worker_boot do
|
||||
ActiveSupport.on_load(:active_record) do
|
||||
ActiveRecord::Base.establish_connection
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue