Exemplo n.º 1
0
      mqeLib.init(setup, function(){
          var setup = mqeLib.getSetup();

          logger = setup.logger;

          setup.static = staticRoot;

          setup.spectraCollection = setup.database.collection(setup.config.db.spectraCollection);
          setup.usdaCollection = setup.database.collection(setup.config.db.usdaCollection);
          setup.lookupCollection = setup.database.collection(setup.config.db.lookupCollection);

          global.setup = setup;

          app.use(require('./lib/prerender/middleware'));

          /*
           * Add any additional config setup or overrides here. `config` is an initialized
           * `confit` (https://github.com/krakenjs/confit/) configuration object.
           */
          next(null, config);

          onReady(config);
      });
Exemplo n.º 2
0
 mqeLib.init(options, function(){
   config.mqeSetup = mqeLib.getSetup();
   callback();
 });