aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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