aboutsummaryrefslogtreecommitdiffhomepage
path: root/server.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-02-03 09:33:05 +0100
committerChocobozzz <me@florianbigard.com>2021-02-03 09:45:08 +0100
commitba5a8d89bbf049e4afc41543bcc072cccdb02669 (patch)
tree6cc6b2dca17745cc0824c7ad4515f3bc4883fa4a /server.ts
parent29f148a61381727a432c22a71c7a2b7cc23d9c9e (diff)
downloadPeerTube-ba5a8d89bbf049e4afc41543bcc072cccdb02669.tar.gz
PeerTube-ba5a8d89bbf049e4afc41543bcc072cccdb02669.tar.zst
PeerTube-ba5a8d89bbf049e4afc41543bcc072cccdb02669.zip
Update server dependencies
Diffstat (limited to 'server.ts')
-rw-r--r--server.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/server.ts b/server.ts
index e3cddfd33..66dcb3c40 100644
--- a/server.ts
+++ b/server.ts
@@ -205,7 +205,8 @@ app.use('/', staticRouter)
205app.use('/', lazyStaticRouter) 205app.use('/', lazyStaticRouter)
206 206
207// Client files, last valid routes! 207// Client files, last valid routes!
208if (cli.client) app.use('/', clientsRouter) 208const cliOptions = cli.opts()
209if (cliOptions.client) app.use('/', clientsRouter)
209 210
210// ----------- Errors ----------- 211// ----------- Errors -----------
211 212
@@ -277,7 +278,7 @@ async function startApplication () {
277 updateStreamingPlaylistsInfohashesIfNeeded() 278 updateStreamingPlaylistsInfohashesIfNeeded()
278 .catch(err => logger.error('Cannot update streaming playlist infohashes.', { err })) 279 .catch(err => logger.error('Cannot update streaming playlist infohashes.', { err }))
279 280
280 if (cli.plugins) await PluginManager.Instance.registerPluginsAndThemes() 281 if (cliOptions.plugins) await PluginManager.Instance.registerPluginsAndThemes()
281 282
282 LiveManager.Instance.init() 283 LiveManager.Instance.init()
283 if (CONFIG.LIVE.ENABLED) LiveManager.Instance.run() 284 if (CONFIG.LIVE.ENABLED) LiveManager.Instance.run()