mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00
Described the configuration file finding behavior added in 2.8.0 and how to disable it.
This commit is contained in:
parent
c94b7995d2
commit
9d6bcf6d84
1 changed files with 6 additions and 0 deletions
|
@ -149,6 +149,12 @@ You can also provide a configuration file which Puma will use with the `-C` (or
|
|||
|
||||
$ puma -C /path/to/config
|
||||
|
||||
By default, if no configuration file is specifed, Puma will look for a configuration file at config/puma.rb. If an environment is specified, either via the `-e` and `--environment` flags, or through the `RACK_ENV` environment variable, the default file location will be config/puma/environment_name.rb.
|
||||
|
||||
If you want to prevent Puma from looking for a configuration file in those locations, provide a dash as the argument to the `-C` (or `--config`) flag:
|
||||
|
||||
$ puma -C "-"
|
||||
|
||||
Take the following [sample configuration](https://github.com/puma/puma/blob/master/examples/config.rb) as inspiration or check out [configuration.rb](https://github.com/puma/puma/blob/master/lib/puma/configuration.rb) to see all available options.
|
||||
|
||||
## Restart
|
||||
|
|
Loading…
Reference in a new issue