{"action":"created","issue":{"url":"https://api.github.com/repos/trailsjs/trails/issues/102","repository_url":"https://api.github.com/repos/trailsjs/trails","labels_url":"https://api.github.com/repos/trailsjs/trails/issues/102/labels{/name}","comments_url":"https://api.github.com/repos/trailsjs/trails/issues/102/comments","events_url":"https://api.github.com/repos/trailsjs/trails/issues/102/events","html_url":"https://github.com/trailsjs/trails/issues/102","id":136981759,"number":102,"title":"Environment config not loaded","user":{"login":"jaumard","id":2970449,"avatar_url":"https://avatars.githubusercontent.com/u/2970449?v=3","gravatar_id":"","url":"https://api.github.com/users/jaumard","html_url":"https://github.com/jaumard","followers_url":"https://api.github.com/users/jaumard/followers","following_url":"https://api.github.com/users/jaumard/following{/other_user}","gists_url":"https://api.github.com/users/jaumard/gists{/gist_id}","starred_url":"https://api.github.com/users/jaumard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaumard/subscriptions","organizations_url":"https://api.github.com/users/jaumard/orgs","repos_url":"https://api.github.com/users/jaumard/repos","events_url":"https://api.github.com/users/jaumard/events{/privacy}","received_events_url":"https://api.github.com/users/jaumard/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/trailsjs/trails/labels/bug","name":"bug","color":"800000"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-02-27T23:35:14Z","updated_at":"2016-04-16T16:12:44Z","closed_at":null,"body":"When environment is set to `production`, trails doesn't override default config by `config/env/production.js` file. \r\n\r\nFor example trailpack-repl is not disable, I can see debug logs and I put some config for trailpack-gulp to build assets in production mode but it take the dev tasks.\r\n\r\nThe command to test the issue\r\n```\r\n$ NODE_ENV=production node server.js\r\n```\r\n\r\nMaybe something wrong around here https://github.com/trailsjs/trailpack/blob/master/index.js#L43 methods return merge config but it was not used ? "},"comment":{"url":"https://api.github.com/repos/trailsjs/trails/issues/comments/210848227","html_url":"https://github.com/trailsjs/trails/issues/102#issuecomment-210848227","issue_url":"https://api.github.com/repos/trailsjs/trails/issues/102","id":210848227,"user":{"login":"jaumard","id":2970449,"avatar_url":"https://avatars.githubusercontent.com/u/2970449?v=3","gravatar_id":"","url":"https://api.github.com/users/jaumard","html_url":"https://github.com/jaumard","followers_url":"https://api.github.com/users/jaumard/followers","following_url":"https://api.github.com/users/jaumard/following{/other_user}","gists_url":"https://api.github.com/users/jaumard/gists{/gist_id}","starred_url":"https://api.github.com/users/jaumard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaumard/subscriptions","organizations_url":"https://api.github.com/users/jaumard/orgs","repos_url":"https://api.github.com/users/jaumard/repos","events_url":"https://api.github.com/users/jaumard/events{/privacy}","received_events_url":"https://api.github.com/users/jaumard/received_events","type":"User","site_admin":false},"created_at":"2016-04-16T16:12:44Z","updated_at":"2016-04-16T16:12:44Z","body":"@tjwebb I see you have put https://www.langa.io in production with Trails :D how did you fix this ? (if you did ^^)"}}