Class | Puma::Configuration::DSL |
In: |
lib/puma/configuration.rb
|
Parent: | Object |
The methods that are available for use inside the config file.
Daemonize the server into the background. Highly suggest that this be combined with pidfile and stdout_redirect.
When shutting down, drain the accept socket of pending connections and proces them. This loops over the accept socket until there are no more read events and then stops looking and waits for the requests to finish.
Code to run before doing a restart. This code should close logfiles, database connections, etc.
This can be called multiple times to add code each time.
Command to use to restart puma. This should be just how to load puma itself (ie. ‘ruby -Ilib bin/puma’), not the arguments to puma, as those are the same as the original process.
Use path as the file to store the server info state. This is used by pumactl to query and control the server.
Configure min to be the minimum number of threads to use to answer requests and max the maximum.