webhook test final (hopefuly)

This commit is contained in:
ZyLacx 2023-02-08 18:53:42 +01:00
parent c2747de1c3
commit cfe60f5dd5

View file

@ -11,7 +11,7 @@ http.createServer(function (req, res) {
let sig = "sha1=" + crypto.createHmac('sha1', secret).update(chunk.toString()).digest('hex')
if (req.headers["x-hub-signature"] == sig) {
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!")
}
})