Skip to content

Instantly share code, notes, and snippets.

@evanxg852000
Created December 7, 2018 12:58
Show Gist options
  • Save evanxg852000/1f5179f0fe003412c853d01c0fdd3797 to your computer and use it in GitHub Desktop.
Save evanxg852000/1f5179f0fe003412c853d01c0fdd3797 to your computer and use it in GitHub Desktop.
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