Skip to content

Commit a7b0308

Browse files
authored
Merge pull request #225 from mkrawczuk/node_example_fix
Move success message to `app`'s `listen` callback.
2 parents a623bc1 + 71097ae commit a7b0308

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

nodejs-role/app/app.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,4 @@ app.get('/', function(req, res){
1111
});
1212

1313
// Listen on port 80 (like a true web server).
14-
app.listen(80);
15-
console.log('Express server started successfully.');
14+
app.listen(80, () => console.log('Express server started successfully.'));

nodejs/provisioning/app/app.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,4 @@ app.get('/', function(req, res){
1111
});
1212

1313
// Listen on port 80 (like a true web server).
14-
app.listen(80);
15-
console.log('Express server started successfully.');
14+
app.listen(80, () => console.log('Express server started successfully.'));

0 commit comments

Comments
 (0)