{"action":"created","issue":{"url":"https://api.github.com/repos/sbt/sbt-conductr/issues/48","labels_url":"https://api.github.com/repos/sbt/sbt-conductr/issues/48/labels{/name}","comments_url":"https://api.github.com/repos/sbt/sbt-conductr/issues/48/comments","events_url":"https://api.github.com/repos/sbt/sbt-conductr/issues/48/events","html_url":"https://github.com/sbt/sbt-conductr/issues/48","id":63959989,"number":48,"title":"Pick configuration at load time, probably also define how ConductR works with \"environments\"","user":{"login":"ktoso","id":120979,"avatar_url":"https://avatars.githubusercontent.com/u/120979?v=3","gravatar_id":"","url":"https://api.github.com/users/ktoso","html_url":"https://github.com/ktoso","followers_url":"https://api.github.com/users/ktoso/followers","following_url":"https://api.github.com/users/ktoso/following{/other_user}","gists_url":"https://api.github.com/users/ktoso/gists{/gist_id}","starred_url":"https://api.github.com/users/ktoso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ktoso/subscriptions","organizations_url":"https://api.github.com/users/ktoso/orgs","repos_url":"https://api.github.com/users/ktoso/repos","events_url":"https://api.github.com/users/ktoso/events{/privacy}","received_events_url":"https://api.github.com/users/ktoso/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-03-24T10:22:08Z","updated_at":"2015-04-16T00:21:55Z","closed_at":null,"body":"It's currently rather confusing how to \"load bundle with my config\", the nearest thing to it docs wise is the section on shazar here: http://typesafehub.github.io/typesafe-conductr/intro/Quickstart.html\r\n\r\nOne use case is: Apps sometimes have modes, or demo-apps we prepare as activator templates often have `frontend` and `backend` roles (including reactive maps, akkamazing etc). So still while developing the app I want to:\r\n* start bundleX with `backend` configuration on `backend` nodes\r\n* start bundleX with `frontend` configuration on `frontend` nodes.\r\n\r\nThis is different than ops overlaying their configuration (with for example prod keys / urls etc). I have the full config in my development sources, and it's committed. I'd advocate for supporting \"environment configuration\", like in chef: https://docs.chef.io/environments.html so we'd have `src/resources/conductr/env.conf` and `src/resources/conductr/end_frontend.conf` etc. \r\n\r\n* I want to be able to pick which env config to shazar and include when loading. It would be nice to have conventions in place, so not every team has it completely differently. Thus the above proposal with `conductr/env[name].conf` (or it could be `.sh`). I'd personally like it to be usable like so: `load -E frontend mybundle`.\r\n* I want to have this name exposed as env variable, so my app can act upon it. We do have activator templates that notice \"oh, I'm a frontend node now, okey!\"."},"comment":{"url":"https://api.github.com/repos/sbt/sbt-conductr/issues/comments/93605169","html_url":"https://github.com/sbt/sbt-conductr/issues/48#issuecomment-93605169","issue_url":"https://api.github.com/repos/sbt/sbt-conductr/issues/48","id":93605169,"user":{"login":"huntc","id":694893,"avatar_url":"https://avatars.githubusercontent.com/u/694893?v=3","gravatar_id":"","url":"https://api.github.com/users/huntc","html_url":"https://github.com/huntc","followers_url":"https://api.github.com/users/huntc/followers","following_url":"https://api.github.com/users/huntc/following{/other_user}","gists_url":"https://api.github.com/users/huntc/gists{/gist_id}","starred_url":"https://api.github.com/users/huntc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huntc/subscriptions","organizations_url":"https://api.github.com/users/huntc/orgs","repos_url":"https://api.github.com/users/huntc/repos","events_url":"https://api.github.com/users/huntc/events{/privacy}","received_events_url":"https://api.github.com/users/huntc/received_events","type":"User","site_admin":false},"created_at":"2015-04-16T00:21:54Z","updated_at":"2015-04-16T00:21:54Z","body":"Thanks @dsugden - spot on per our conversation yesterday. All but the last sentence is `sbt-bundle` of course."}}