{"action":"created","issue":{"url":"https://api.github.com/repos/totaljs/framework/issues/238","labels_url":"https://api.github.com/repos/totaljs/framework/issues/238/labels{/name}","comments_url":"https://api.github.com/repos/totaljs/framework/issues/238/comments","events_url":"https://api.github.com/repos/totaljs/framework/issues/238/events","html_url":"https://github.com/totaljs/framework/issues/238","id":54428308,"number":238,"title":"Multiple configurations for each stage","user":{"login":"mateuszgachowski","id":628992,"avatar_url":"https://avatars.githubusercontent.com/u/628992?v=3","gravatar_id":"","url":"https://api.github.com/users/mateuszgachowski","html_url":"https://github.com/mateuszgachowski","followers_url":"https://api.github.com/users/mateuszgachowski/followers","following_url":"https://api.github.com/users/mateuszgachowski/following{/other_user}","gists_url":"https://api.github.com/users/mateuszgachowski/gists{/gist_id}","starred_url":"https://api.github.com/users/mateuszgachowski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mateuszgachowski/subscriptions","organizations_url":"https://api.github.com/users/mateuszgachowski/orgs","repos_url":"https://api.github.com/users/mateuszgachowski/repos","events_url":"https://api.github.com/users/mateuszgachowski/events{/privacy}","received_events_url":"https://api.github.com/users/mateuszgachowski/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-01-15T09:30:16Z","updated_at":"2015-01-15T09:59:12Z","closed_at":null,"body":"Hi,\r\n\r\nIm using the framework version 1.6.2. I would be great to have something like \"stage configs\". For now we just have debug and release, but why not just make an option to select the config file which each instance should use?\r\n\r\nE.g.:\r\n\r\n```js\r\nrequire('total.js').useConfig('dev').http(); // fires default config for dev env, inside the config we can for example define if its a debug mode or a release mode\r\nrequire('total.js').useConfig('qa').http(true); // loads the config-qa file and the debug mode is passed via http() method\r\nrequire('total.js').useConfig('prod').http(); // same as above but uses config-prod\r\n```\r\n\r\nWhat do you think?\r\n\r\nCheers,\r\nMateusz"},"comment":{"url":"https://api.github.com/repos/totaljs/framework/issues/comments/70063210","html_url":"https://github.com/totaljs/framework/issues/238#issuecomment-70063210","issue_url":"https://api.github.com/repos/totaljs/framework/issues/238","id":70063210,"user":{"login":"mateuszgachowski","id":628992,"avatar_url":"https://avatars.githubusercontent.com/u/628992?v=3","gravatar_id":"","url":"https://api.github.com/users/mateuszgachowski","html_url":"https://github.com/mateuszgachowski","followers_url":"https://api.github.com/users/mateuszgachowski/followers","following_url":"https://api.github.com/users/mateuszgachowski/following{/other_user}","gists_url":"https://api.github.com/users/mateuszgachowski/gists{/gist_id}","starred_url":"https://api.github.com/users/mateuszgachowski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mateuszgachowski/subscriptions","organizations_url":"https://api.github.com/users/mateuszgachowski/orgs","repos_url":"https://api.github.com/users/mateuszgachowski/repos","events_url":"https://api.github.com/users/mateuszgachowski/events{/privacy}","received_events_url":"https://api.github.com/users/mateuszgachowski/received_events","type":"User","site_admin":false},"created_at":"2015-01-15T09:59:12Z","updated_at":"2015-01-15T09:59:12Z","body":"Looks ok for me. The other option would be to leave the 'config-' prefix for all the configs. It will make clear how the config pattern is defined. Anyway the first option is more flexible.\r\n`filename in the application root` - maybe it can be just a path to the config for example? If you will have multiple configs it would be great to put them in a separate directory (for example: `/configs`).\r\n\r\nWhat do you think?\r\nThanks,\r\nMateusz"}}