Skip to content

Commit

Permalink
Fix pet-peeve
Browse files Browse the repository at this point in the history
  • Loading branch information
armenzg committed Feb 16, 2018
1 parent f7e98bc commit 4abc645
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ const load = () => {
server.on('listening', () => {
const { address, port } = server.address();
// eslint-disable-next-line
console.log('http://%s:%d/ in %s', address, port, process.env.NODE_ENV || 'dev');
console.log('http://%s:%d/ in %s',
address === '::' ? 'localhost' : address,
port,
process.env.NODE_ENV,
);
});
server.listen(process.env.PORT || 3000);
return server;
Expand Down

0 comments on commit 4abc645

Please sign in to comment.