After office politics, you decide that you want to use MySQL by default.
You no longer want to type
db=mysql every time you run your application.
You can add a
defaults list into your config file.
Config group defaults
Remember to specify
config.yaml as the
When you run the updated application, MySQL is loaded by default.
Overriding a config group default
You can still load PostgreSQL, and override individual values.
You can prevent a default from being loaded by assigning
null to it in the command line:
Non-config group defaults
Sometimes a config file you want to merge does not belong in any config group.
The following will load
some_file.yaml from your config directory:
Config files that not a part of a
config group like
db cannot be overridden.