{"action":"created","issue":{"url":"https://api.github.com/repos/strongloop/loopback-boot/issues/84","labels_url":"https://api.github.com/repos/strongloop/loopback-boot/issues/84/labels{/name}","comments_url":"https://api.github.com/repos/strongloop/loopback-boot/issues/84/comments","events_url":"https://api.github.com/repos/strongloop/loopback-boot/issues/84/events","html_url":"https://github.com/strongloop/loopback-boot/issues/84","id":52611158,"number":84,"title":"Config merge order","user":{"login":"doublemarked","id":239190,"avatar_url":"https://avatars.githubusercontent.com/u/239190?v=3","gravatar_id":"","url":"https://api.github.com/users/doublemarked","html_url":"https://github.com/doublemarked","followers_url":"https://api.github.com/users/doublemarked/followers","following_url":"https://api.github.com/users/doublemarked/following{/other_user}","gists_url":"https://api.github.com/users/doublemarked/gists{/gist_id}","starred_url":"https://api.github.com/users/doublemarked/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/doublemarked/subscriptions","organizations_url":"https://api.github.com/users/doublemarked/orgs","repos_url":"https://api.github.com/users/doublemarked/repos","events_url":"https://api.github.com/users/doublemarked/events{/privacy}","received_events_url":"https://api.github.com/users/doublemarked/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/strongloop/loopback-boot/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2014-12-22T00:28:11Z","updated_at":"2015-01-09T12:31:05Z","closed_at":null,"body":"Hello!\r\n\r\nAs far as I can tell, loopback-boot is merging datasource configs in an order of ``env -> local -> master``, meaning that local config values get clobbered by environment-specific ones. This surprised me, as my understanding from the docs is that local config files are intended to be excluded from VCS and serve as a trump for local setup. I had intended to use this file to tweak a few values in the development environment datasource setup. \r\n\r\nAre my expectations off? I would have expected the merge to happen in the order ``local -> env -> master``, meaning that local datasource config trumps environment, with all of them overriding the general config.\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/strongloop/loopback-boot/issues/comments/69328564","html_url":"https://github.com/strongloop/loopback-boot/issues/84#issuecomment-69328564","issue_url":"https://api.github.com/repos/strongloop/loopback-boot/issues/84","id":69328564,"user":{"login":"bajtos","id":1140553,"avatar_url":"https://avatars.githubusercontent.com/u/1140553?v=3","gravatar_id":"","url":"https://api.github.com/users/bajtos","html_url":"https://github.com/bajtos","followers_url":"https://api.github.com/users/bajtos/followers","following_url":"https://api.github.com/users/bajtos/following{/other_user}","gists_url":"https://api.github.com/users/bajtos/gists{/gist_id}","starred_url":"https://api.github.com/users/bajtos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bajtos/subscriptions","organizations_url":"https://api.github.com/users/bajtos/orgs","repos_url":"https://api.github.com/users/bajtos/repos","events_url":"https://api.github.com/users/bajtos/events{/privacy}","received_events_url":"https://api.github.com/users/bajtos/received_events","type":"User","site_admin":false},"created_at":"2015-01-09T12:31:05Z","updated_at":"2015-01-09T12:31:05Z","body":"> I like this approach outlined in #4. The intention is that such values would be automatically merged into the config, yes? \r\n\r\nYes. The values from the environment take precedence over everything else.\r\n\r\n> This approach would accommodate all the expectations I outlined above and remove the need for us to have 'dynamic' config files.\r\n\r\nCan we close this issue then?"}}