settingslogic icon indicating copy to clipboard operation
settingslogic copied to clipboard

Add support for multiple files

Open greghaygood opened this issue 14 years ago • 4 comments

I've updated SettingsLogic to support multiple files, in order to allow local environments to override settings in source control managed global files as needed.

greghaygood avatar Aug 14 '11 15:08 greghaygood

Here is Gist, how this can be easily done without any patching. https://gist.github.com/1462080

igor-alexandrov avatar Dec 11 '11 19:12 igor-alexandrov

Hello,

Thanks for the feature, but it will look better if we will have support for config directories:

/etc/app_name.d/
/etc/app_name.yml

and these directories can contain more *.yml files.

vitaliel avatar Oct 20 '12 14:10 vitaliel

I was thinking about doing the same because I have secure information that I want to be different in staging and production. Generally the file is going to be sym linked during a deploy. I realized that it was easier to just create another Settings Logic object for example SecureSettings and link/overwrite the development/test version of the config file. We don't store the sensitive information in source control so this turned out to be a trivial alternative solution. I wanted to share this solution in case it's useful for someone else.

enortham avatar Jan 08 '13 03:01 enortham

You may want to checkout chamber, which supports an arbitrary number of files.

m5rk avatar Nov 19 '13 13:11 m5rk