From 98f7c10d9d3c666c61b0c166b17c28ecd3c9729f Mon Sep 17 00:00:00 2001 From: Clint Shryock Date: Wed, 5 Jun 2013 18:57:09 -0500 Subject: [PATCH] Add note about on_worker_boot hook --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 5920a06c..a3d9be9d 100644 --- a/README.md +++ b/README.md @@ -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: