From 7298cad6ce41506dd24cb199a3dbd3aec38a2aa2 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 3 Jan 2022 17:17:12 +0100 Subject: Fix tests --- shared/server-commands/server/server.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'shared/server-commands/server') diff --git a/shared/server-commands/server/server.ts b/shared/server-commands/server/server.ts index 7b81da54d..e9201c329 100644 --- a/shared/server-commands/server/server.ts +++ b/shared/server-commands/server/server.ts @@ -210,15 +210,17 @@ export class PeerTubeServer { Object.assign(env, options.env) } + const execArgv = options.nodeArgs || [] + execArgv.push('--enable-source-maps') + const forkOptions = { silent: true, env, detached: true, - execArgv: options.nodeArgs || [] + execArgv } const peertubeArgs = options.peertubeArgs || [] - peertubeArgs.push('--enable-source-maps') return new Promise((res, rej) => { const self = this -- cgit v1.2.3