Add support for multiple files #20

Open
wants to merge 5 commits into
from

Conversation

Projects
None yet
6 participants
@greghaygood

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.

@igor-alexandrov

This comment has been minimized.

Show comment
Hide comment
@igor-alexandrov

igor-alexandrov Dec 11, 2011

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

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

@vitaliel

This comment has been minimized.

Show comment
Hide comment
@vitaliel

vitaliel Oct 20, 2012

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.

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.

@enortham

This comment has been minimized.

Show comment
Hide comment
@enortham

enortham Jan 8, 2013

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 commented Jan 8, 2013

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.

@m5rk

This comment has been minimized.

Show comment
Hide comment
@m5rk

m5rk Nov 19, 2013

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

m5rk commented Nov 19, 2013

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

@X0nic X0nic referenced this pull request in settingslogic/settingslogic Sep 11, 2014

Open

decide what to merge from binarylogic/settingslogic #1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment