820923664d
The Unicorn master resets any signal handlers and prevents rbtrace from working properly as a result. Move the `require 'rbtrace'` call to the Unicorn `after_fork` block and keep the initializer only for Sidekiq.
5 lines
213 B
Ruby
5 lines
213 B
Ruby
# frozen_string_literal: true
|
|
|
|
# rbtrace needs to be included after the unicorn worker forks.
|
|
# See the after_fork block in config/unicorn.rb.example.
|
|
require 'rbtrace' if ENV['ENABLE_RBTRACE'] && Sidekiq.server?
|