Commit 6b1e79c4 authored by shangbj's avatar shangbj

updatea

parent 42d5e16c
...@@ -54,8 +54,9 @@ app.all('/bjgee/update', function(req, res){ ...@@ -54,8 +54,9 @@ app.all('/bjgee/update', function(req, res){
'git pull', 'git pull',
'npm run generate' 'npm run generate'
].join('&&') ].join('&&')
console.log('res',res)
exec(commands, function(err,out){ exec(commands, function(err,out){
console.log('out',out)
if(err instanceof Error){ if(err instanceof Error){
res.writeHead(500) res.writeHead(500)
res.end('Hook error') 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