lib/app/express/main.js
function(app) {
    var config = app.config;
    var testing = config.profile === 'testing';
    var starterPromise = startServer(app).then(logStartup);
    if (!testing) {
      starterPromise = starterPromise.catch(logError);
    }
    return starterPromise;
  }
function(app) {
    var config = app.config;
    var testing = config.profile === 'testing';
    var starterPromise = startServer(app).then(logStartup);
    if (!testing) {
      starterPromise = starterPromise.catch(logError);
    }
    return starterPromise;
  }
function ( app ) { var config = app . config ; var testing = config . profile === 'testing' ; var starterPromise = startServer ( app ) . then ( logStartup ) ; if ( ! testing ) { starterPromise = starterPromise . catch ( logError ) ; } return starterPromise ; }
Starts the given app.

@param {Object} app
An app instance created using `createApp`.

@returns {Promise}
Starts the given app .