Skip to content

Instantly share code, notes, and snippets.

@flockonus
Created March 29, 2016 17:10
Show Gist options
  • Save flockonus/85ec673364e4106adc189ae4f99f1423 to your computer and use it in GitHub Desktop.
Save flockonus/85ec673364e4106adc189ae4f99f1423 to your computer and use it in GitHub Desktop.
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