Skip to content

Commit

Permalink
Write to stdout when the http server is listening
Browse files Browse the repository at this point in the history
  • Loading branch information
evansolomon committed Mar 9, 2015
1 parent d9a9a69 commit 2f83066
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,7 @@ if (argv.help) {
].join('\n'))
}

require('./index.js')(argv).listen(argv.port || 4567)
var port = argv.port || 4567
require('./index.js')(argv).listen(port, function () {
console.log('Listening on port: %s', port)
})

0 comments on commit 2f83066

Please sign in to comment.