Created
June 10, 2016 08:29
-
-
Save jeffmess/85e21708f1f9d8a63faa0ad147746271 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
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. |
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
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