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:
parent
36ebdfac6e
commit
9270bd3a7e
5 changed files with 9 additions and 19 deletions
|
@ -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 = () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue