gestalt
gestalt copied to clipboard
Support for dist files / overwriting values with local config values
Usually I have a dist file (which is added to my git project), and local configuration files (not in git). I'd like to load dist filesfirst, and then overwrite them with local configuration files.
For example:
app.dist.ini ´´´ db.hostname = myhostname db.database = mydatabase db.username = ... ´´´
and then in app.ini ´´´ db.hostname = mysql.host.com db.database = somerealdbname db.username = ... ´´´
Is this possible out of the box? Or should I create my own loaders?
Hmm, so essentially you are looking to merge configuration options from two directories? I think you will have to write a custom loader for that.