From 737115bd6b6d724eaadb46363e179c43cc379091 Mon Sep 17 00:00:00 2001 From: Djkato Date: Wed, 12 Jul 2023 23:19:26 +0200 Subject: [PATCH] test2??? --- git_webhook.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/git_webhook.js b/git_webhook.js index 3eb122d..65f362f 100644 --- a/git_webhook.js +++ b/git_webhook.js @@ -11,11 +11,11 @@ http.createServer(function (req, res) { const 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!') } }) -// AAAAAAAAAAAAAAA + // AAAAAAAAAAAAAAA res.writeHead(200, { 'Content-Type': 'text/plain' }) res.end('Hello World\n') }).listen(7481, '127.0.0.1', () => {