Created
March 29, 2016 17:10
-
-
Save flockonus/85ec673364e4106adc189ae4f99f1423 to your computer and use it in GitHub Desktop.
This file contains 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
server | |
.register({ | |
// https://www.npmjs.com/package/good | |
register: Good, | |
options: { | |
reporters: [{ | |
reporter: require('good-console'), | |
events: { | |
response: '*', | |
log: '*', | |
ops: '*', | |
error: '*', | |
} | |
}] | |
} | |
}) | |
// ... add more .register(s) | |
.catch((err)=>{ | |
throw err; | |
}) | |
// if no error happened to this point: | |
.then(()=>{ | |
server.start((err) => { | |
if (err) { | |
throw err; | |
} | |
server.log('info', 'Server running at: ' + server.info.uri); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment