Skip to content

Commit

Permalink
Merge pull request krakenjs#38 from ertoth/master
Browse files Browse the repository at this point in the history
Add port/socket messaging on startup.
  • Loading branch information
Jeff Harrell committed Aug 14, 2013
2 parents ffd906f + 2187db6 commit 97c7b9b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,16 @@ var webcore = {
return app;
}

function print(server) {
var socket = server.address();
console.log('Listening on %s', typeof socket === 'string' ? socket : String(socket.port));
return server;
}

return this._promise
.then(handleErrors)
.then(bind)
.then(print)
.nodeify(callback);
}

Expand Down

0 comments on commit 97c7b9b

Please sign in to comment.