Skip to content

Commit

Permalink
Merge pull request #1411 from nobuti/fix/467-hostname-boot-message
Browse files Browse the repository at this point in the history
Framework: Include hostname in boot message.
  • Loading branch information
sirbrillig committed Dec 11, 2015
2 parents 2f6dc1d + e9d7b0b commit 3e8fa7f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@ var pkg = require( './package.json' ),

var start = Date.now(),
port = process.env.PORT || 3000,
host = config( 'hostname' ),
app = boot(),
server,
hotReloader;

console.log( '%s booted in %dms - port: %s', pkg.name, ( Date.now() ) - start, port );
console.log( chalk.yellow('%s booted in %dms - http://%s:%s'), pkg.name, ( Date.now() ) - start, host, port );
console.info( chalk.cyan( '\nGetting bundles ready, hold on...' ) );
server = http.createServer( app );
server.listen( port );
Expand Down

0 comments on commit 3e8fa7f

Please sign in to comment.