Commit d5cb0db2 authored by shangbj's avatar shangbj

update

parent 6b1e79c4
......@@ -48,15 +48,15 @@ app.all('/wiki/update', function(req, res){
})
app.all('/bjgee/update', function(req, res){
const BJGEE_PATH = '/home/bjgee'
// const BJGEE_PATH = '/home/bjgee'
const BJGEE_PATH = '/Users/shangbj/Documents/个人项目/bjgee'
const commands = [
'cd ' + BJGEE_PATH,
'git pull',
'git pull origin master',
'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