code: 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;
    }
docs: Starts the given app.
  
  @param {Object} app
  An app instance created using `createApp`.
  
  @returns {Promise}