Skip to content

Commit

Permalink
Display server address at startup
Browse files Browse the repository at this point in the history
  • Loading branch information
cheton committed May 22, 2016
1 parent 59d3635 commit 6a883e2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app/index.js
Expand Up @@ -56,6 +56,8 @@ const run = ({ port, host, backlog, config, verbose, mount }) => {

webappengine({ port, host, backlog, routes })
.on('ready', (server) => {
const address = server.address();
console.log('Started the server at http://%s:%d/.', address.address, address.port);
cncserver(server);
});
};
Expand Down

0 comments on commit 6a883e2

Please sign in to comment.