{"action":"closed","issue":{"url":"https://api.github.com/repos/trailsjs/trails/issues/200","repository_url":"https://api.github.com/repos/trailsjs/trails","labels_url":"https://api.github.com/repos/trailsjs/trails/issues/200/labels{/name}","comments_url":"https://api.github.com/repos/trailsjs/trails/issues/200/comments","events_url":"https://api.github.com/repos/trailsjs/trails/issues/200/events","html_url":"https://github.com/trailsjs/trails/issues/200","id":155683419,"number":200,"title":"Environment config problem","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/api%20change","name":"api change","color":"eb6420"},{"url":"https://api.github.com/repos/trailsjs/trails/labels/bug","name":"bug","color":"800000"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/trailsjs/trails/milestones/6","html_url":"https://github.com/trailsjs/trails/milestones/v1.x","labels_url":"https://api.github.com/repos/trailsjs/trails/milestones/6/labels","id":1719775,"number":6,"title":"v1.x","description":"","creator":{"login":"tjwebb","id":1009114,"avatar_url":"https://avatars.githubusercontent.com/u/1009114?v=3","gravatar_id":"","url":"https://api.github.com/users/tjwebb","html_url":"https://github.com/tjwebb","followers_url":"https://api.github.com/users/tjwebb/followers","following_url":"https://api.github.com/users/tjwebb/following{/other_user}","gists_url":"https://api.github.com/users/tjwebb/gists{/gist_id}","starred_url":"https://api.github.com/users/tjwebb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tjwebb/subscriptions","organizations_url":"https://api.github.com/users/tjwebb/orgs","repos_url":"https://api.github.com/users/tjwebb/repos","events_url":"https://api.github.com/users/tjwebb/events{/privacy}","received_events_url":"https://api.github.com/users/tjwebb/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":1,"state":"open","created_at":"2016-04-20T05:07:01Z","updated_at":"2016-05-31T00:57:10Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2016-05-19T08:45:45Z","updated_at":"2016-05-31T00:57:10Z","closed_at":"2016-05-31T00:57:10Z","body":"#### Issue Description\r\nIf I put this under `config/env/production.js` : \r\n\r\n```\r\nconst winston = require('winston')\r\n\r\nmodule.exports = {\r\n\r\n  trailpack: {\r\n    disabled: [\r\n      'repl'\r\n    ]\r\n  },\r\n  database: {\r\n    /**\r\n     * Define the database stores. A store is typically a single database.\r\n     *\r\n     * Use the SQLite3 by default for development purposes.\r\n     *\r\n     * Set production connection info in config/env/production.js\r\n     */\r\n    stores: {\r\n\r\n      /**\r\n       * Define a store called \"local\" which uses SQLite3 to persist data.\r\n       */\r\n      sqlitedev: {\r\n        adapter: require('waterline-sqlite3'),\r\n        migrate: 'safe'\r\n      }\r\n    },\r\n\r\n    models: {\r\n      defaultStore: 'sqlitedev',\r\n      migrate: 'safe'\r\n    }\r\n  },\r\n\r\n  web: {\r\n    port: 8080\r\n  },\r\n\r\n  log: {\r\n    logger: new winston.Logger({\r\n      level: 'info',\r\n      exitOnError: false,\r\n      transports: [\r\n        new winston.transports.Console({\r\n          timestamp: true\r\n        }),\r\n        new winston.transports.File({\r\n          name: 'info-file',\r\n          level: 'info',\r\n          filename: 'trails-info.log',\r\n          timestamp: true\r\n        }),\r\n        new winston.transports.File({\r\n          name: 'error-file',\r\n          level: 'error',\r\n          filename: 'trails-error.log',\r\n          timestamp: true\r\n        })\r\n      ]\r\n    })\r\n  }\r\n}\r\n```\r\n\r\nThey are 2 problem : \r\n\r\n- Trailpack repl was not disable, `trailpack` field config seems ignored\r\n- Config are not override the default `config/*`, it's replace it, this means I loose every config I put for `config.web` witch is for dev and prod, all I want to do is change the port number but everything else is lost.\r\n\r\n#### Environment\r\n- node version: all\r\n- trails version: 1.0.0\r\n- operating system: all\r\n"}}
{"actor":{"display_login":"tjwebb"}}