Prepend ASSETS_HOST to assets

This commit is contained in:
Piotr Sarnacki 2015-02-03 23:24:42 +01:00
parent f82025c6d5
commit f6751e4b08

View File

@ -2,7 +2,18 @@
var EmberApp = require('ember-cli/lib/broccoli/ember-app');
var app = new EmberApp();
var fingerprint = {}, assetsHost;
if (assetsHost = process.env.ASSETS_HOST) {
if (assetsHost.substr(-1) !== '/') {
assetsHost = assetsHost + '/'
}
fingerprint.prepend = assetsHost
}
var app = new EmberApp({
fingerprint: fingerprint
});
app.import('bower_components/pusher/dist/pusher.js');
app.import('bower_components/jquery-timeago/jquery.timeago.js');