tonycoco / heroku-buildpack-ember-cli

A Heroku Buildpack for Ember CLI Applications
MIT License
321 stars 121 forks source link

double api-prefix necessary with dokku #60

Closed crunchtime-ali closed 9 years ago

crunchtime-ali commented 9 years ago

I just deployed an Ember-CLI app with a Sails.js backend for the first time. The Sails-backend serves via http://<IP-Adress>:34523 my API-prefix is api/v1 . So I set API_URL=http://<IP-Adress>:12345 and API_PREFIX=/api/v1/ .

The Ember-Cli application would be available via http://<IP-Adress>:12346. It's making API requests to http://<IP-Adress>:12346/api/v1/... but the nginx of this buildpack is serving them via http://<IP-Adress>:12346/api/v1/api/v1/...

Can you imagine why that is happening?

tonycoco commented 9 years ago

I'll take a look, but I don't think I can support Dokku without having any experience with it.

tonycoco commented 9 years ago

Referencing #62 as well

crunchtime-ali commented 9 years ago

By the way, this issue is gone when using VHOSTS.

tonycoco commented 9 years ago

Referencing #66 too