[Answered ]-How to not start an EmberJs App with static assets present

2πŸ‘

βœ…

I assume your Ember App is a Ember-CLI project so you have to disable autoRun in the ember-cli-build.js. It should look something like this:

var EmberApp = require('ember-cli/lib/broccoli/ember-app');

module.exports = function(defaults) {
  var app = new EmberApp(defaults, {
    autoRun: false
  });
  return app.toTree();
};

Now the app won’t get started automatically. You can boot up the app manually like this: require("app-name/app")["default"].create({/* app settings */});

You can also find this information in the ember-cli user guides

πŸ‘€t-sauer

Leave a comment