{"action":"created","issue":{"url":"https://api.github.com/repos/shoreditch-ops/artillery/issues/64","repository_url":"https://api.github.com/repos/shoreditch-ops/artillery","labels_url":"https://api.github.com/repos/shoreditch-ops/artillery/issues/64/labels{/name}","comments_url":"https://api.github.com/repos/shoreditch-ops/artillery/issues/64/comments","events_url":"https://api.github.com/repos/shoreditch-ops/artillery/issues/64/events","html_url":"https://github.com/shoreditch-ops/artillery/issues/64","id":141282266,"number":64,"title":"environment target URL is never used","user":{"login":"antony","id":218949,"avatar_url":"https://avatars.githubusercontent.com/u/218949?v=3","gravatar_id":"","url":"https://api.github.com/users/antony","html_url":"https://github.com/antony","followers_url":"https://api.github.com/users/antony/followers","following_url":"https://api.github.com/users/antony/following{/other_user}","gists_url":"https://api.github.com/users/antony/gists{/gist_id}","starred_url":"https://api.github.com/users/antony/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antony/subscriptions","organizations_url":"https://api.github.com/users/antony/orgs","repos_url":"https://api.github.com/users/antony/repos","events_url":"https://api.github.com/users/antony/events{/privacy}","received_events_url":"https://api.github.com/users/antony/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/shoreditch-ops/artillery/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-16T13:54:46Z","updated_at":"2016-03-16T17:13:29Z","closed_at":"2016-03-16T16:41:58Z","body":"As discussed on gitter, environment specific target urls are not picked up.\r\n\r\nFor example:\r\n```\r\n\"config\": {\r\n  \"target\": \"xyz\"\r\n  \"environments\": {\r\n    \"perf\": {\r\n      \"target\": \"http://my-api.example.net\"\r\n    }\r\n  }\r\n}\r\n```\r\n\r\nThen running with '-e perf' results in all requests actually being prefixed with: ```xyz``` rather than the environment's URL.\r\n\r\nLeaving the config.target element out entirely results in the url being prefixed with ```undefined```\r\n\r\nExpected behaviour is that the URL /v1/user would become ```http://my-api.example.net/v1/user``` rather than ```xyz/v1/user```.\r\n"},"comment":{"url":"https://api.github.com/repos/shoreditch-ops/artillery/issues/comments/197435432","html_url":"https://github.com/shoreditch-ops/artillery/issues/64#issuecomment-197435432","issue_url":"https://api.github.com/repos/shoreditch-ops/artillery/issues/64","id":197435432,"user":{"login":"hassy","id":1490,"avatar_url":"https://avatars.githubusercontent.com/u/1490?v=3","gravatar_id":"","url":"https://api.github.com/users/hassy","html_url":"https://github.com/hassy","followers_url":"https://api.github.com/users/hassy/followers","following_url":"https://api.github.com/users/hassy/following{/other_user}","gists_url":"https://api.github.com/users/hassy/gists{/gist_id}","starred_url":"https://api.github.com/users/hassy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hassy/subscriptions","organizations_url":"https://api.github.com/users/hassy/orgs","repos_url":"https://api.github.com/users/hassy/repos","events_url":"https://api.github.com/users/hassy/events{/privacy}","received_events_url":"https://api.github.com/users/hassy/received_events","type":"User","site_admin":false},"created_at":"2016-03-16T17:13:29Z","updated_at":"2016-03-16T17:13:29Z","body":"@antony published `v1.3.9` with a fix (+ the fixes you contributed)"}}