lib/app/express/main.js
function(config) {
    var app = null;
    try {
      app = module.exports.createApp(config);
    } catch (err) {
      // wrap also synchronous error to promise to have consistent API for catching all errors
      return Promise.reject(err);
    }
    return module.exports.startApp(app);
  }
function(config) {
    var app = null;
    try {
      app = module.exports.createApp(config);
    } catch (err) {
      // wrap also synchronous error to promise to have consistent API for catching all errors
      return Promise.reject(err);
    }
    return module.exports.startApp(app);
  }
function ( config ) { var app = null ; try { app = module . exports . createApp ( config ) ; } catch ( err ) { // wrap also synchronous error to promise to have consistent API for catching all errors return Promise . reject ( err ) ; } return module . exports . startApp ( app ) ; }
Creates and starts the server with the given config.

@param {Object} config
The config object for a service. See README.md for documentation about config files.

@returns {Promise}
Creates and starts the server with the given config .