From 09670126f24eceb14bb31a1b8fa0ae4c3ebac3c9 Mon Sep 17 00:00:00 2001 From: Ulf Gebhardt Date: Wed, 12 Jan 2022 10:43:46 +0100 Subject: [PATCH] comment fix --- backend/src/webhook/github.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/webhook/github.ts b/backend/src/webhook/github.ts index 0c41dc728..69b0ccc73 100644 --- a/backend/src/webhook/github.ts +++ b/backend/src/webhook/github.ts @@ -18,6 +18,7 @@ export const githubWebhook = async (req: any, res: any): Promise => { console.log(payload) if (payload.ref === `refs/heads/${CONFIG.WEBHOOK_GITHUB_BRANCH}`) { + // spawn shell and detach process to allow killing of parent process in the update script const child = spawn( path.join(__dirname, '../../../deployment/bare_metal/start.sh'), [CONFIG.WEBHOOK_GITHUB_BRANCH], @@ -26,7 +27,6 @@ export const githubWebhook = async (req: any, res: any): Promise => { stdio: ['ignore', 'ignore', 'ignore'], }, ) - // detach process to allow killing of parent process in the update script child.unref() } }