1
0
Fork 0
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:
Clint Shryock 2013-06-05 18:57:09 -05:00
parent e38469ea7b
commit 98f7c10d9d

View file

@ -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: