{"action":"created","issue":{"url":"https://api.github.com/repos/promisasu/Portal/issues/263","repository_url":"https://api.github.com/repos/promisasu/Portal","labels_url":"https://api.github.com/repos/promisasu/Portal/issues/263/labels{/name}","comments_url":"https://api.github.com/repos/promisasu/Portal/issues/263/comments","events_url":"https://api.github.com/repos/promisasu/Portal/issues/263/events","html_url":"https://github.com/promisasu/Portal/pull/263","id":138367648,"number":263,"title":"Add environment to configuration","user":{"login":"ChristianMurphy","id":3107513,"avatar_url":"https://avatars.githubusercontent.com/u/3107513?v=3","gravatar_id":"","url":"https://api.github.com/users/ChristianMurphy","html_url":"https://github.com/ChristianMurphy","followers_url":"https://api.github.com/users/ChristianMurphy/followers","following_url":"https://api.github.com/users/ChristianMurphy/following{/other_user}","gists_url":"https://api.github.com/users/ChristianMurphy/gists{/gist_id}","starred_url":"https://api.github.com/users/ChristianMurphy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChristianMurphy/subscriptions","organizations_url":"https://api.github.com/users/ChristianMurphy/orgs","repos_url":"https://api.github.com/users/ChristianMurphy/repos","events_url":"https://api.github.com/users/ChristianMurphy/events{/privacy}","received_events_url":"https://api.github.com/users/ChristianMurphy/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/promisasu/Portal/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-04T03:45:57Z","updated_at":"2016-03-05T17:46:32Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/promisasu/Portal/pulls/263","html_url":"https://github.com/promisasu/Portal/pull/263","diff_url":"https://github.com/promisasu/Portal/pull/263.diff","patch_url":"https://github.com/promisasu/Portal/pull/263.patch"},"body":"**Taiga Issue:** 511\r\n**GitHub Issue:** #257\r\n\r\n**What did you change?**\r\nAdded `environment` attribute to `config.json`\r\nUpdated `npm run start` and `npm run stop` to use `environment` in server name\r\nAdded `validate-configuration` task to be able to quickly check configuration files for common problems\r\nRenamed `server` to `dashboard` in `config.json`\r\nRemoved the `run run describe-<task>` commands\r\n\r\n**How can we test?**\r\n*to test configuration changes*\r\n1. Add `\"environment\": \"<name>\"`\r\n2. Rename `\"server\": {` to `\"dashboard\": {`\r\n3. Start server `npm start`\r\n\r\n*to test configuration validator*\r\n1. Run `npm run validate-configuration`\r\n\r\n*to test multiple environments*\r\n1. Make a copy of the project\r\n2. Change the copies configuration to have a different `environment` and `port` numbers\r\n3. Start both servers\r\n"},"comment":{"url":"https://api.github.com/repos/promisasu/Portal/issues/comments/192697776","html_url":"https://github.com/promisasu/Portal/pull/263#issuecomment-192697776","issue_url":"https://api.github.com/repos/promisasu/Portal/issues/263","id":192697776,"user":{"login":"iamaureen","id":14321194,"avatar_url":"https://avatars.githubusercontent.com/u/14321194?v=3","gravatar_id":"","url":"https://api.github.com/users/iamaureen","html_url":"https://github.com/iamaureen","followers_url":"https://api.github.com/users/iamaureen/followers","following_url":"https://api.github.com/users/iamaureen/following{/other_user}","gists_url":"https://api.github.com/users/iamaureen/gists{/gist_id}","starred_url":"https://api.github.com/users/iamaureen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iamaureen/subscriptions","organizations_url":"https://api.github.com/users/iamaureen/orgs","repos_url":"https://api.github.com/users/iamaureen/repos","events_url":"https://api.github.com/users/iamaureen/events{/privacy}","received_events_url":"https://api.github.com/users/iamaureen/received_events","type":"User","site_admin":false},"created_at":"2016-03-05T17:46:32Z","updated_at":"2016-03-05T17:46:32Z","body":":shipit:"}}