diff --git a/backend/src/webhook/github.ts b/backend/src/webhook/github.ts index d7186bb10..e0887c543 100644 --- a/backend/src/webhook/github.ts +++ b/backend/src/webhook/github.ts @@ -21,6 +21,7 @@ export const githubWebhook = async (req: any, res: any): Promise => { const child = spawn(path.join(__dirname, '../../../deployment/bare_metal/start.sh'), [ CONFIG.WEBHOOK_GITHUB_BRANCH, ]) + // detach process to allow killing of parent process in the update script child.unref() } }