Permalink
Browse files

adjusted githook

  • Loading branch information...
1 parent cfda95b commit 689350fa689558e33455386c3f8fc6ae47704f32 @coolaj86 committed Dec 17, 2012
Showing with 7 additions and 1 deletion.
  1. +5 −0 lib/github-hook/index.js
  2. +2 −1 package.json
View
@@ -14,14 +14,19 @@
// make sure your daemon respawns processes that exit!
// that way this is effectively a reload
function killNode(err, stdout, stderr) {
+ console.error(err);
+ console.log(stdout);
+ console.error(stderr);
res.end(JSON.stringify({
error: err
, stdout: stdout
, stderr: stderr
}));
//if (!err && !stderr && stdout) {
+ setTimeout(function () {
process.exit();
+ }, 1000);
//}
}
View
@@ -11,10 +11,11 @@
"node": ">= 0.4.0"
},
"dependencies": {
- "connect": "2.6.x"
+ "connect": "2.7.x"
, "nowww": "1.x"
, "github-hook": "1.x"
, "mime": "1.x"
},
+ "main": "server",
"devDependencies": {}
}

0 comments on commit 689350f

Please sign in to comment.