i have created rest host's address property in config/environment.js , use during development.
but once should go live, rest server may change , during live time of app rest server may change host. building via ember build -prod ... puts variable inside lengthy string in idex.html , minified , compacted app-js file, cannot changed easily.
i cannot believe that, need re-build whole app change rest host's address.
simple question: how change rest host in production easily?
you should able adapter application container , set host attribute. should it
var adapter = this.store.adapterfor('application'); adapter.set('host', 'https://my.new.host.com');
Comments
Post a Comment