"use strict";

var _http = _interopRequireDefault(require("http"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

module.exports = function (app) {
  return new Promise(function (resolve) {
    var httpSrv = _http["default"].createServer(app).listen(app.settings.port, app.settings.host, function (_) {
      return resolve("http://".concat(app.settings.host, ":").concat(httpSrv.address().port));
    });
  });
};