diff options
author | Chocobozzz <me@florianbigard.com> | 2021-02-03 09:33:05 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-02-03 09:45:08 +0100 |
commit | ba5a8d89bbf049e4afc41543bcc072cccdb02669 (patch) | |
tree | 6cc6b2dca17745cc0824c7ad4515f3bc4883fa4a /server.ts | |
parent | 29f148a61381727a432c22a71c7a2b7cc23d9c9e (diff) | |
download | PeerTube-ba5a8d89bbf049e4afc41543bcc072cccdb02669.tar.gz PeerTube-ba5a8d89bbf049e4afc41543bcc072cccdb02669.tar.zst PeerTube-ba5a8d89bbf049e4afc41543bcc072cccdb02669.zip |
Update server dependencies
Diffstat (limited to 'server.ts')
-rw-r--r-- | server.ts | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -205,7 +205,8 @@ app.use('/', staticRouter) | |||
205 | app.use('/', lazyStaticRouter) | 205 | app.use('/', lazyStaticRouter) |
206 | 206 | ||
207 | // Client files, last valid routes! | 207 | // Client files, last valid routes! |
208 | if (cli.client) app.use('/', clientsRouter) | 208 | const cliOptions = cli.opts() |
209 | if (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() |