mirror of
https://github.com/geerlingguy/ansible-for-devops.git
synced 2024-05-19 06:50:03 +00:00
Merge pull request #225 from mkrawczuk/node_example_fix
Move success message to `app`'s `listen` callback.
This commit is contained in:
@@ -11,5 +11,4 @@ app.get('/', function(req, res){
|
||||
});
|
||||
|
||||
// Listen on port 80 (like a true web server).
|
||||
app.listen(80);
|
||||
console.log('Express server started successfully.');
|
||||
app.listen(80, () => console.log('Express server started successfully.'));
|
||||
|
||||
@@ -11,5 +11,4 @@ app.get('/', function(req, res){
|
||||
});
|
||||
|
||||
// Listen on port 80 (like a true web server).
|
||||
app.listen(80);
|
||||
console.log('Express server started successfully.');
|
||||
app.listen(80, () => console.log('Express server started successfully.'));
|
||||
|
||||
Reference in New Issue
Block a user