Skip to content

Commit

Permalink
Add a console log on boot.
Browse files Browse the repository at this point in the history
  • Loading branch information
timdorr committed Aug 27, 2015
1 parent 1950dd2 commit c281676
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion examples/universal/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,10 @@ function renderFullPage(html, initialState) {
`;
}

app.listen(port);
app.listen(port, (error) => {
if (error) {
console.error(error);
} else {
console.info('==> 🌎 Listening on port 8080. Open up http://localhost:8080/ in your browser.');
}
});

0 comments on commit c281676

Please sign in to comment.