aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/server-commands/server
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-01-03 17:17:12 +0100
committerChocobozzz <me@florianbigard.com>2022-01-03 17:17:12 +0100
commit7298cad6ce41506dd24cb199a3dbd3aec38a2aa2 (patch)
tree46f6adc3cf57394e79e425e0deaf3e644480f6b4 /shared/server-commands/server
parent9270bd3a7e6802b99a6ab12910c6c702d290fd4b (diff)
downloadPeerTube-7298cad6ce41506dd24cb199a3dbd3aec38a2aa2.tar.gz
PeerTube-7298cad6ce41506dd24cb199a3dbd3aec38a2aa2.tar.zst
PeerTube-7298cad6ce41506dd24cb199a3dbd3aec38a2aa2.zip
Fix tests
Diffstat (limited to 'shared/server-commands/server')
-rw-r--r--shared/server-commands/server/server.ts6
1 files changed, 4 insertions, 2 deletions
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 {
210 Object.assign(env, options.env) 210 Object.assign(env, options.env)
211 } 211 }
212 212
213 const execArgv = options.nodeArgs || []
214 execArgv.push('--enable-source-maps')
215
213 const forkOptions = { 216 const forkOptions = {
214 silent: true, 217 silent: true,
215 env, 218 env,
216 detached: true, 219 detached: true,
217 execArgv: options.nodeArgs || [] 220 execArgv
218 } 221 }
219 222
220 const peertubeArgs = options.peertubeArgs || [] 223 const peertubeArgs = options.peertubeArgs || []
221 peertubeArgs.push('--enable-source-maps')
222 224
223 return new Promise<void>((res, rej) => { 225 return new Promise<void>((res, rej) => {
224 const self = this 226 const self = this