I have an ember-cli application that I'm deploying to Divshot using the ember-cli-divshot addon. In my config/environment.js
file I want to have a different api
between development and production.
Inside var ENV = {}
I have:
api: 'http://localhost:3000'
And the I have this for production:
if (environment === 'production')
ENV.api = '<my production api>'
}
However when I do divshot push production
, my Ember app is trying to hit the localhost endpoint for the api.
Aucun commentaire:
Enregistrer un commentaire