adamwiggins / 12factor

Official fork now at: https://github.com/heroku/12factor
http://12factor.net/
MIT License
409 stars 714 forks source link

config: methods to achieve 12factor-ness? #16

Open dpkirchner opened 10 years ago

dpkirchner commented 10 years ago

I like what I have read on the 12factor.net site but one concept in particular stands out as unclear, perhaps incomplete: config.

The site recommends using individual environment variables instead of sets of environment variables grouped in to environments (e.g. production, staging). However, the site also recommends that the development and production environments be kept as similar as is possible, suggesting that there must be some mechanism keeping at least the variable names in sync, if not the values, for consistent development environments. These two recommendations seem to be in conflict, or at least one could be clarified to support the other.

Are there practical examples demonstrating a way to manage environment variables without them being grouped in to environments or files that may inadvertently be committed to VCS?

Rogach commented 9 years ago

+1. That's very interesting point - I made a question on Programmes.SE about that, but didn't get sufficiently sane answers yet.