{"action":"created","issue":{"url":"https://api.github.com/repos/dwyl/env2/issues/11","labels_url":"https://api.github.com/repos/dwyl/env2/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/dwyl/env2/issues/11/comments","events_url":"https://api.github.com/repos/dwyl/env2/issues/11/events","html_url":"https://github.com/dwyl/env2/issues/11","id":101609787,"number":11,"title":"Confusing: not actually 12 factor app config approach","user":{"login":"timruffles","id":249800,"avatar_url":"https://avatars.githubusercontent.com/u/249800?v=3","gravatar_id":"","url":"https://api.github.com/users/timruffles","html_url":"https://github.com/timruffles","followers_url":"https://api.github.com/users/timruffles/followers","following_url":"https://api.github.com/users/timruffles/following{/other_user}","gists_url":"https://api.github.com/users/timruffles/gists{/gist_id}","starred_url":"https://api.github.com/users/timruffles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timruffles/subscriptions","organizations_url":"https://api.github.com/users/timruffles/orgs","repos_url":"https://api.github.com/users/timruffles/repos","events_url":"https://api.github.com/users/timruffles/events{/privacy}","received_events_url":"https://api.github.com/users/timruffles/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dwyl/env2/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-08-18T09:19:22Z","updated_at":"2015-08-18T11:54:35Z","closed_at":"2015-08-18T10:20:51Z","body":"`env2` looks like a nice way to manage config, it's just not the [12fa](http://12factor.net/config) way to manage config. As it currently stands, `env2` doesn't actually allow you to take in config from the environment! :)\r\n\r\nUnless I'm missing something, 12fa explicitly calls out the pattern in `env2` as an [anti-pattern](http://12factor.net/config), and provides good reasons to avoid it:\r\n\r\n> Another approach to config is the use of config files which are not checked into revision control, such as config/database.yml in Rails. This is a huge improvement over using constants which are checked into the code repo, but still has weaknesses: it’s easy to mistakenly check in a config file to the repo; there is a tendency for config files to be scattered about in different places and different formats, making it hard to see and manage all the config in one place. Further, these formats tend to be language- or framework-specific.\r\n\r\n> Env vars are easy to change between deploys without changing any code; unlike config files, there is little chance of them being checked into the code repo accidentally; and unlike custom config files, or other config mechanisms such as Java System Properties, they are a language- and OS-agnostic standard.\r\n"},"comment":{"url":"https://api.github.com/repos/dwyl/env2/issues/comments/132185845","html_url":"https://github.com/dwyl/env2/issues/11#issuecomment-132185845","issue_url":"https://api.github.com/repos/dwyl/env2/issues/11","id":132185845,"user":{"login":"timruffles","id":249800,"avatar_url":"https://avatars.githubusercontent.com/u/249800?v=3","gravatar_id":"","url":"https://api.github.com/users/timruffles","html_url":"https://github.com/timruffles","followers_url":"https://api.github.com/users/timruffles/followers","following_url":"https://api.github.com/users/timruffles/following{/other_user}","gists_url":"https://api.github.com/users/timruffles/gists{/gist_id}","starred_url":"https://api.github.com/users/timruffles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timruffles/subscriptions","organizations_url":"https://api.github.com/users/timruffles/orgs","repos_url":"https://api.github.com/users/timruffles/repos","events_url":"https://api.github.com/users/timruffles/events{/privacy}","received_events_url":"https://api.github.com/users/timruffles/received_events","type":"User","site_admin":false},"created_at":"2015-08-18T11:54:35Z","updated_at":"2015-08-18T11:54:35Z","body":"Sure, or even only mention it under \"other approaches that might work for you\" :)"}}