test2???
This commit is contained in:
parent
04fcdea543
commit
737115bd6b
1 changed files with 2 additions and 2 deletions
|
@ -11,11 +11,11 @@ http.createServer(function (req, res) {
|
||||||
const sig = 'sha1=' + crypto.createHmac('sha1', secret).update(chunk.toString()).digest('hex')
|
const sig = 'sha1=' + crypto.createHmac('sha1', secret).update(chunk.toString()).digest('hex')
|
||||||
if (req.headers['x-hub-signature'] == sig) {
|
if (req.headers['x-hub-signature'] == sig) {
|
||||||
console.log('updating moover...')
|
console.log('updating moover...')
|
||||||
exec(`pm2 stop 'MOOver-main' && cd ${repo} && git pull && npm install && pm2 start 'MOOver-main'`)
|
exec(`pm2 stop 'MOOver-main' && cd ${repo} && git pull && npm install ; pm2 start 'MOOver-main'`)
|
||||||
console.log('Success!')
|
console.log('Success!')
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
// AAAAAAAAAAAAAAA
|
// AAAAAAAAAAAAAAA
|
||||||
res.writeHead(200, { 'Content-Type': 'text/plain' })
|
res.writeHead(200, { 'Content-Type': 'text/plain' })
|
||||||
res.end('Hello World\n')
|
res.end('Hello World\n')
|
||||||
}).listen(7481, '127.0.0.1', () => {
|
}).listen(7481, '127.0.0.1', () => {
|
||||||
|
|
Loading…
Reference in a new issue