diff options
Diffstat (limited to 'shared/server-commands')
-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 = () => { |