I am trying to have two applications that are connected but have different access points from the server. Currently ember buildreturning to index.htmlat dist/. This happens with the following setting:
var EmberApp = require('ember-cli/lib/broccoli/ember-app');
var mergeTrees = require('broccoli-merge-trees');
var app = new EmberApp();
var viewer = new EmberApp({
storeConfigInMeta: false,
trees: {
app: 'viewer',
templates: 'viewer/templates',
styles: 'viewer/styles'
},
outputPaths: {
app: {
css: '/assets/viewer.css',
js: '/assets/viewer.js'
},
vendor: {
css: '/assets/viewer-vendor.css',
js: '/assets/viewer-vendor.js'
}
}
});
app.import('bower_components/socket.io-client/socket.io.js');
viewer.import('bower_components/socket.io-client/socket.io.js');
module.exports = mergeTrees([viewer.toTree(), app.toTree()], { overwrite: true });
I would also like to indicate the html output path, but after inspecting
https://github.com/stefanpenner/ember-cli/blob/master/lib/broccoli/ember-app.js I am not smarter about what I should do. Also using different configurations that actually don't work with errors configPath..:
ENOENT, there is no such file or directory '/Users/user/project/tmp/tree_merger-tmp_dest_dir-fen1Dz3z.tmp/project/config/environment.js'