{"action":"created","issue":{"url":"https://api.github.com/repos/strongloop/loopback-boot/issues/28","labels_url":"https://api.github.com/repos/strongloop/loopback-boot/issues/28/labels{/name}","comments_url":"https://api.github.com/repos/strongloop/loopback-boot/issues/28/comments","events_url":"https://api.github.com/repos/strongloop/loopback-boot/issues/28/events","html_url":"https://github.com/strongloop/loopback-boot/issues/28","id":38955053,"number":28,"title":"Expected value of app.get('env')","user":{"login":"greaterweb","id":426886,"avatar_url":"https://avatars.githubusercontent.com/u/426886?v=3","gravatar_id":"","url":"https://api.github.com/users/greaterweb","html_url":"https://github.com/greaterweb","followers_url":"https://api.github.com/users/greaterweb/followers","following_url":"https://api.github.com/users/greaterweb/following{/other_user}","gists_url":"https://api.github.com/users/greaterweb/gists{/gist_id}","starred_url":"https://api.github.com/users/greaterweb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/greaterweb/subscriptions","organizations_url":"https://api.github.com/users/greaterweb/orgs","repos_url":"https://api.github.com/users/greaterweb/repos","events_url":"https://api.github.com/users/greaterweb/events{/privacy}","received_events_url":"https://api.github.com/users/greaterweb/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/strongloop/loopback-boot/labels/Beginner%20Friendly","name":"Beginner Friendly","color":"00DD00"},{"url":"https://api.github.com/repos/strongloop/loopback-boot/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2014-07-29T03:23:27Z","updated_at":"2015-03-02T09:49:59Z","closed_at":null,"body":"When initializing `boot` with `options`, if `options.env` is supplied, that value does not match what `app.get('env')` returns.\r\n\r\nThe [`env` variable](https://github.com/strongloop/loopback-boot/blob/master/lib/compiler.js#L29) is set based on options provided and passed to config loader methods for app, models and datasources. It is never stored beyond the compiler and config loader initialization.\r\n\r\nIn my opinion it would be beneficial to have `app.get('env')` match what is supplied in `options.env`."},"comment":{"url":"https://api.github.com/repos/strongloop/loopback-boot/issues/comments/76683790","html_url":"https://github.com/strongloop/loopback-boot/issues/28#issuecomment-76683790","issue_url":"https://api.github.com/repos/strongloop/loopback-boot/issues/28","id":76683790,"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-03-02T09:49:59Z","updated_at":"2015-03-02T09:49:59Z","body":"+1\r\n\r\nWe should consider modifying the code building the `env` variable to take into account the current value of `app.get('env')` too."}}