Commit 6b1e79c4 authored by shangbj's avatar shangbj

updatea

parent 42d5e16c
......@@ -54,8 +54,9 @@ app.all('/bjgee/update', function(req, res){
'git pull',
'npm run generate'
].join('&&')
console.log('res',res)
exec(commands, function(err,out){
console.log('out',out)
if(err instanceof Error){
res.writeHead(500)
res.end('Hook error')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment