{"action":"created","issue":{"url":"https://api.github.com/repos/james-henderson/phoenix/issues/3","labels_url":"https://api.github.com/repos/james-henderson/phoenix/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/james-henderson/phoenix/issues/3/comments","events_url":"https://api.github.com/repos/james-henderson/phoenix/issues/3/events","html_url":"https://github.com/james-henderson/phoenix/issues/3","id":55385613,"number":3,"title":"Provide first-class access to environment variables?","user":{"login":"glenjamin","id":151272,"avatar_url":"https://avatars.githubusercontent.com/u/151272?v=3","gravatar_id":"","url":"https://api.github.com/users/glenjamin","html_url":"https://github.com/glenjamin","followers_url":"https://api.github.com/users/glenjamin/followers","following_url":"https://api.github.com/users/glenjamin/following{/other_user}","gists_url":"https://api.github.com/users/glenjamin/gists{/gist_id}","starred_url":"https://api.github.com/users/glenjamin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glenjamin/subscriptions","organizations_url":"https://api.github.com/users/glenjamin/orgs","repos_url":"https://api.github.com/users/glenjamin/repos","events_url":"https://api.github.com/users/glenjamin/events{/privacy}","received_events_url":"https://api.github.com/users/glenjamin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"james-henderson","id":336964,"avatar_url":"https://avatars.githubusercontent.com/u/336964?v=3","gravatar_id":"","url":"https://api.github.com/users/james-henderson","html_url":"https://github.com/james-henderson","followers_url":"https://api.github.com/users/james-henderson/followers","following_url":"https://api.github.com/users/james-henderson/following{/other_user}","gists_url":"https://api.github.com/users/james-henderson/gists{/gist_id}","starred_url":"https://api.github.com/users/james-henderson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/james-henderson/subscriptions","organizations_url":"https://api.github.com/users/james-henderson/orgs","repos_url":"https://api.github.com/users/james-henderson/repos","events_url":"https://api.github.com/users/james-henderson/events{/privacy}","received_events_url":"https://api.github.com/users/james-henderson/received_events","type":"User","site_admin":false},"milestone":null,"comments":7,"created_at":"2015-01-24T21:34:21Z","updated_at":"2015-01-24T22:31:42Z","closed_at":null,"body":"Hello!\r\n\r\nI really like the look of phoenix, although I was mildly put off by the examples having all of their config in files.\r\n\r\nFrom what I can tell in the examples, it would be fairly easy for me to create a component which reads the environment and is depended on by other components to get the values out - but I think it could be useful to provide support for this out-of-the-box in the http://12factor.net/config manner.\r\n\r\nIt could work something like this:\r\n```clj\r\n{::env {:db-uri \"user:pass@dev-db.mycompany.com\"  ; specify defaults on the ::env key\r\n        :nrepl-port 5432\r\n        :http-port 1234}\r\n :database {::component myapp.database/make\r\n            :uri [::env :db-uri]} ; similar syntax to ::deps\r\n :nrepl {::component myapp.nrepl/make\r\n         :port [::env :nrepl-port]}\r\n :ring {::component myapp.handler/make\r\n        :port [::env :http-port]}\r\n                 \r\n```"},"comment":{"url":"https://api.github.com/repos/james-henderson/phoenix/issues/comments/71340899","html_url":"https://github.com/james-henderson/phoenix/issues/3#issuecomment-71340899","issue_url":"https://api.github.com/repos/james-henderson/phoenix/issues/3","id":71340899,"user":{"login":"james-henderson","id":336964,"avatar_url":"https://avatars.githubusercontent.com/u/336964?v=3","gravatar_id":"","url":"https://api.github.com/users/james-henderson","html_url":"https://github.com/james-henderson","followers_url":"https://api.github.com/users/james-henderson/followers","following_url":"https://api.github.com/users/james-henderson/following{/other_user}","gists_url":"https://api.github.com/users/james-henderson/gists{/gist_id}","starred_url":"https://api.github.com/users/james-henderson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/james-henderson/subscriptions","organizations_url":"https://api.github.com/users/james-henderson/orgs","repos_url":"https://api.github.com/users/james-henderson/repos","events_url":"https://api.github.com/users/james-henderson/events{/privacy}","received_events_url":"https://api.github.com/users/james-henderson/received_events","type":"User","site_admin":false},"created_at":"2015-01-24T22:31:42Z","updated_at":"2015-01-24T22:31:42Z","body":"Hi Glen - I've just released a snapshot version - 0.0.2-SNAPSHOT - with this feature in - how does it look?\r\n\r\nJames"}}