{"action":"created","issue":{"url":"https://api.github.com/repos/tonycoco/heroku-buildpack-ember-cli/issues/116","labels_url":"https://api.github.com/repos/tonycoco/heroku-buildpack-ember-cli/issues/116/labels{/name}","comments_url":"https://api.github.com/repos/tonycoco/heroku-buildpack-ember-cli/issues/116/comments","events_url":"https://api.github.com/repos/tonycoco/heroku-buildpack-ember-cli/issues/116/events","html_url":"https://github.com/tonycoco/heroku-buildpack-ember-cli/issues/116","id":116913687,"number":116,"title":"API proxy not working","user":{"login":"robinboening","id":342977,"avatar_url":"https://avatars.githubusercontent.com/u/342977?v=3","gravatar_id":"","url":"https://api.github.com/users/robinboening","html_url":"https://github.com/robinboening","followers_url":"https://api.github.com/users/robinboening/followers","following_url":"https://api.github.com/users/robinboening/following{/other_user}","gists_url":"https://api.github.com/users/robinboening/gists{/gist_id}","starred_url":"https://api.github.com/users/robinboening/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robinboening/subscriptions","organizations_url":"https://api.github.com/users/robinboening/orgs","repos_url":"https://api.github.com/users/robinboening/repos","events_url":"https://api.github.com/users/robinboening/events{/privacy}","received_events_url":"https://api.github.com/users/robinboening/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-14T09:24:53Z","updated_at":"2015-11-18T17:25:27Z","closed_at":null,"body":"Hey there,\r\n\r\nfirst things first: thanks for providing this buildback! :)\r\n\r\nI have a rails service deployed on heroku which serves an api for my separate ember app, also running on heroku.\r\n\r\nLocally I start the ember app using `--proxy localhost:3000` to connect to the api. I noticed setting the `API_URL` on heroku should do almost the same, right? https://github.com/tonycoco/heroku-buildpack-ember-cli#api-proxy I tried that but got weird parsing errors after deployment.\r\n\r\nI fixed it by adding the `host` to the `RESTAdapter` in `application.js`, but this is just a workaround.\r\n\r\nThanks \r\nRobin"},"comment":{"url":"https://api.github.com/repos/tonycoco/heroku-buildpack-ember-cli/issues/comments/157786513","html_url":"https://github.com/tonycoco/heroku-buildpack-ember-cli/issues/116#issuecomment-157786513","issue_url":"https://api.github.com/repos/tonycoco/heroku-buildpack-ember-cli/issues/116","id":157786513,"user":{"login":"tonycoco","id":19303,"avatar_url":"https://avatars.githubusercontent.com/u/19303?v=3","gravatar_id":"","url":"https://api.github.com/users/tonycoco","html_url":"https://github.com/tonycoco","followers_url":"https://api.github.com/users/tonycoco/followers","following_url":"https://api.github.com/users/tonycoco/following{/other_user}","gists_url":"https://api.github.com/users/tonycoco/gists{/gist_id}","starred_url":"https://api.github.com/users/tonycoco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tonycoco/subscriptions","organizations_url":"https://api.github.com/users/tonycoco/orgs","repos_url":"https://api.github.com/users/tonycoco/repos","events_url":"https://api.github.com/users/tonycoco/events{/privacy}","received_events_url":"https://api.github.com/users/tonycoco/received_events","type":"User","site_admin":false},"created_at":"2015-11-18T17:25:27Z","updated_at":"2015-11-18T17:25:27Z","body":"You should basically have the API requests passthrough to your actual backend like so...\r\n\r\nClient makes a request to `/api/some_resources/1.json` and then the buildpack takes care of routing the local request to something like `http://API_URL/some_resources/1.json`"}}