This commit is contained in:
Josh Harvey 2016-10-11 16:15:30 +01:00
parent 259b527214
commit 0a2d2f658e
6 changed files with 90 additions and 61 deletions

View file

@ -27,9 +27,11 @@ if (!httpOnly) {
options.mock = argv.mock
var server = createServer(options)
console.log('DEBUG23')
server.listen(port, function () {
console.log('lamassu-server listening on port ' + port + ' ' +
(httpOnly ? '(http)' : '(https)'))
createServer(options)
.then(server => {
console.log('DEBUG22')
return server.listen(port, () => console.log('lamassu-server listening on port ' +
port + ' ' + (httpOnly ? '(http)' : '(https)')))
})