mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00
Add note about on_worker_boot hook
This commit is contained in:
parent
e38469ea7b
commit
98f7c10d9d
1 changed files with 4 additions and 1 deletions
|
@ -85,7 +85,10 @@ Additionally, you can specify a block in your configuration that will be run on
|
|||
# configuration here
|
||||
end
|
||||
|
||||
This code can be used to setup the process before booting the application. This can be called multiple times to add hooks.
|
||||
This code can be used to setup the process before booting the application, allowing
|
||||
you to do some puma-specific things that you don't want to embed in your application.
|
||||
For instance, you could fire a log notification that a worker booted or send something to statsd.
|
||||
This can be called multiple times to add hooks.
|
||||
|
||||
Be sure to specify the location of your configuration file:
|
||||
|
||||
|
|
Loading…
Reference in a new issue