I have beem attempting to implement git hooks with gith have had no luck.
Even the very simple example below does not behave as I would expect.
Status code 200 is being returned to github, so the gith server
is obviously running, but the callback is not ever being called.
var gith = require('gith').create(9004); // ensure to match the port you entered in Github
gith().on( 'all', function( payload ) {
console.log( 'Post-receive happened!' );
});
For the record I'm using Ubuntu 14.04 x64