Browse Source

Fix tests

pull/4696/head
Chocobozzz 2 weeks ago
parent
commit
7298cad6ce
No known key found for this signature in database GPG Key ID: 583A612D890159BE
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      shared/server-commands/server/server.ts

+ 4
- 2
shared/server-commands/server/server.ts View File

@@ -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<void>((res, rej) => {
const self = this


Loading…
Cancel
Save