1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-03 17:59:37 +02:00

Migrate to --enable-source-maps option

This commit is contained in:
Chocobozzz 2022-01-03 16:37:16 +01:00
parent 36ebdfac6e
commit 9270bd3a7e
No known key found for this signature in database
GPG key ID: 583A612D890159BE
5 changed files with 9 additions and 19 deletions

View file

@ -217,11 +217,14 @@ export class PeerTubeServer {
execArgv: options.nodeArgs || []
}
const peertubeArgs = options.peertubeArgs || []
peertubeArgs.push('--enable-source-maps')
return new Promise<void>((res, rej) => {
const self = this
let aggregatedLogs = ''
this.app = fork(join(root(), 'dist', 'server.js'), options.peertubeArgs || [], forkOptions)
this.app = fork(join(root(), 'dist', 'server.js'), peertubeArgs, forkOptions)
const onPeerTubeExit = () => rej(new Error('Process exited:\n' + aggregatedLogs))
const onParentExit = () => {