From dcb9fc2f4ac1f0529f90888c8eda11a9fdf8e72c Mon Sep 17 00:00:00 2001 From: Djkato Date: Wed, 8 Feb 2023 18:35:41 +0100 Subject: [PATCH] =?UTF-8?q?proces=20vraj=20po=C4=8Duje=C5=A1=20ho=3F=3F=3F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- git_webhook.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git_webhook.js b/git_webhook.js index 4cda33b..40232b8 100644 --- a/git_webhook.js +++ b/git_webhook.js @@ -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'")