text: var http = require('http')
  var shell = require('shelljs');
  
  var createHandler = require('github-webhook-handler')
  var handler = createHandler({ path: '/testRepo', secret: 'secret1' })
  
  http.createServer(function (req, res) {
    handler(req, res, function (err) {
      res.statusCode = 404
      res.end('no such location')
    })
  }).listen(3336)
  
  handler.on('error', function (err) {
    console.error('Error:', err.message)
  })
  
  handler.on('push', function (event) {
    console.log('Received a push event for %s to %s',
      event.payload.repository.name,
      event.payload.ref)
      shell.exec('./scripts/deploy.sh');
  })
  
  handler.on('issues', function (event) {
    console.log('Received an issue event for %s action=%s: #%d %s',
      event.payload.repository.name,
      event.payload.action,
      event.payload.issue.number,
      event.payload.issue.title)
  })    