diff options
author | Chocobozzz <me@florianbigard.com> | 2022-01-03 16:37:16 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-01-03 16:37:16 +0100 |
commit | 9270bd3a7e6802b99a6ab12910c6c702d290fd4b (patch) | |
tree | 8b705faa2fc08d9d5a8b6fc3e0ab27555b5b019c /shared | |
parent | 36ebdfac6e3cc6296a3049eb44e0621e72b6a184 (diff) | |
download | PeerTube-9270bd3a7e6802b99a6ab12910c6c702d290fd4b.tar.gz PeerTube-9270bd3a7e6802b99a6ab12910c6c702d290fd4b.tar.zst PeerTube-9270bd3a7e6802b99a6ab12910c6c702d290fd4b.zip |
Migrate to --enable-source-maps option
Diffstat (limited to 'shared')
-rw-r--r-- | shared/server-commands/server/server.ts | 5 |
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 = () => { |