mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
try fork
This commit is contained in:
parent
1bd3e7df00
commit
3f4ba4c50c
@ -1,5 +1,5 @@
|
||||
// eslint-disable-next-line camelcase
|
||||
import { spawn } from 'child_process'
|
||||
import { fork } from 'child_process'
|
||||
import path from 'path'
|
||||
import CONFIG from '../config'
|
||||
|
||||
@ -18,7 +18,7 @@ export const githubWebhook = async (req: any, res: any): Promise<void> => {
|
||||
console.log(payload)
|
||||
|
||||
if (payload.ref === `refs/heads/${CONFIG.WEBHOOK_GITHUB_BRANCH}`) {
|
||||
const child = spawn(path.join(__dirname, '../../../deployment/bare_metal/start.sh'), [
|
||||
const child = fork(path.join(__dirname, '../../../deployment/bare_metal/start.sh'), [
|
||||
CONFIG.WEBHOOK_GITHUB_BRANCH,
|
||||
])
|
||||
// detach process to allow killing of parent process in the update script
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user