Skip to content

Instantly share code, notes, and snippets.

@jeffmess
Created June 10, 2016 08:29
Show Gist options
  • Save jeffmess/85e21708f1f9d8a63faa0ad147746271 to your computer and use it in GitHub Desktop.
Save jeffmess/85e21708f1f9d8a63faa0ad147746271 to your computer and use it in GitHub Desktop.
Running node v5.11.0 (npm v3.8.6)
Server started at http://0.0.0.0:3000
Hapi server running at: http://0.0.0.0:3000
There was a problem in file and it has been destroyed.
start() : void {
const options = {
ops: {
interval: 1500
},
reporters: {
file: [{
module: 'good-file',
args: ['/tmp/development.log']
}]
}
};
this._server.register({
register: require('good'),
options
}, (err : any) => {
if (err) {
return console.error(err);
}
this._server.start(() => {
console.info(`Server started at ${ this._server.info.uri }`);
console.log('Hapi server running at: ', this._server.info.uri);
})
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment