aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/server-commands/server/server.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-01-03 16:37:16 +0100
committerChocobozzz <me@florianbigard.com>2022-01-03 16:37:16 +0100
commit9270bd3a7e6802b99a6ab12910c6c702d290fd4b (patch)
tree8b705faa2fc08d9d5a8b6fc3e0ab27555b5b019c /shared/server-commands/server/server.ts
parent36ebdfac6e3cc6296a3049eb44e0621e72b6a184 (diff)
downloadPeerTube-9270bd3a7e6802b99a6ab12910c6c702d290fd4b.tar.gz
PeerTube-9270bd3a7e6802b99a6ab12910c6c702d290fd4b.tar.zst
PeerTube-9270bd3a7e6802b99a6ab12910c6c702d290fd4b.zip
Migrate to --enable-source-maps option
Diffstat (limited to 'shared/server-commands/server/server.ts')
-rw-r--r--shared/server-commands/server/server.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/shared/server-commands/server/server.ts b/shared/server-commands/server/server.ts
index 617069b11..7b81da54d 100644
--- a/shared/server-commands/server/server.ts
+++ b/shared/server-commands/server/server.ts
@@ -217,11 +217,14 @@ export class PeerTubeServer {
217 execArgv: options.nodeArgs || [] 217 execArgv: options.nodeArgs || []
218 } 218 }
219 219
220 const peertubeArgs = options.peertubeArgs || []
221 peertubeArgs.push('--enable-source-maps')
222
220 return new Promise<void>((res, rej) => { 223 return new Promise<void>((res, rej) => {
221 const self = this 224 const self = this
222 let aggregatedLogs = '' 225 let aggregatedLogs = ''
223 226
224 this.app = fork(join(root(), 'dist', 'server.js'), options.peertubeArgs || [], forkOptions) 227 this.app = fork(join(root(), 'dist', 'server.js'), peertubeArgs, forkOptions)
225 228
226 const onPeerTubeExit = () => rej(new Error('Process exited:\n' + aggregatedLogs)) 229 const onPeerTubeExit = () => rej(new Error('Process exited:\n' + aggregatedLogs))
227 const onParentExit = () => { 230 const onParentExit = () => {