Created
December 7, 2018 12:58
-
-
Save evanxg852000/1f5179f0fe003412c853d01c0fdd3797 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
boot(callback){ | |
this._httpServer.listen(this.config.port, (err) => { | |
if(callback && typeof(callback) === 'function'){ | |
callback(err) | |
} | |
if (err) { | |
return console.log('Micro was not able to start correctly', err) | |
} | |
console.log(`Micro server is listening on ${this.config.port}`) | |
}) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment