diff --git a/git_webhook.js b/git_webhook.js index 4fdc7e6..702de81 100644 --- a/git_webhook.js +++ b/git_webhook.js @@ -11,7 +11,7 @@ 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!') } })