proces vraj počuješ ho???

This commit is contained in:
Djkato 2023-02-08 18:35:41 +01:00
parent bf323b34de
commit dcb9fc2f4a

View file

@ -9,7 +9,7 @@ http.createServer(function (req, res) {
req.on('data', function (chunk) {
let sig = "sha1=" + crypto.createHmac('sha1', secret).update(chunk.toString()).digest('hex')
console.log(`Got a request! comparing ${proces.env.GITHUB_WEBHOOK} \n==\n ${req.headers["x-hub-signature"]}`)
console.log(`Got a request! comparing ${process.env.GITHUB_WEBHOOK} \n==\n ${req.headers["x-hub-signature"]}`)
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'")