Method: Puma::DSL#on_worker_boot
- Defined in:
- lib/puma/dsl.rb
#on_worker_boot(key = nil, &block) ⇒ Object
Note:
Cluster mode only.
Code to run in a worker when it boots to setup the process before booting the app.
This can be called multiple times to add several hooks.
642 643 644 645 646 |
# File 'lib/puma/dsl.rb', line 642 def on_worker_boot(key = nil, &block) warn_if_in_single_mode('on_worker_boot') process_hook :before_worker_boot, key, block, 'on_worker_boot' end |