gestalt icon indicating copy to clipboard operation
gestalt copied to clipboard

Support for dist files / overwriting values with local config values

Open rauwebieten opened this issue 8 years ago • 1 comments

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?

rauwebieten avatar Sep 14 '17 18:09 rauwebieten

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.

samrap avatar Sep 14 '17 20:09 samrap