Configuration
The config plugin reads configuration files and expands environment variables. Other plugins use it to read their settings.
Configuration File Structure
Use YAML or JSON for the RoadRunner configuration. Set version: "3" in each file. This value identifies the configuration format.
Example of a YAML configuration file:
version: '3'
# ... other config valuesThe file-based configuration loader rejects a missing or non-string version. The legacy value "2.7" still loads with an upgrade warning. Each included file must have the same version as the main file.
Includes and overrides
Use include to load additional files. The loader applies CLI -o values before includes, so an included section can replace an override. List values are replaced. Includes have no delete operation and do not load nested include lists.
Each include is required. The config plugin does not support optional include objects. Use environment variables with defaults for values that differ between systems.
Environment Files
The root envfile setting loads a file before the config plugin expands environment variables. With config plugin v6, it no longer requires experimental mode. A setting that was ignored without experimental mode in v5 is now active.
Remove an unused envfile setting. If you need it, supply the file it names. A missing or unreadable file stops initialization. See Dotenv for configuration examples, relative paths, and environment precedence.
Tips
RoadRunner looks for
.rr.yamlin the current working directory. Use-cto select a file and-wto select a working directory.
Last updated
Was this helpful?