mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2026-09-03 20:53:09 -05:00
Update server dependencies
This commit is contained in:
@@ -205,7 +205,8 @@ app.use('/', staticRouter)
|
||||
app.use('/', lazyStaticRouter)
|
||||
|
||||
// Client files, last valid routes!
|
||||
if (cli.client) app.use('/', clientsRouter)
|
||||
const cliOptions = cli.opts()
|
||||
if (cliOptions.client) app.use('/', clientsRouter)
|
||||
|
||||
// ----------- Errors -----------
|
||||
|
||||
@@ -277,7 +278,7 @@ async function startApplication () {
|
||||
updateStreamingPlaylistsInfohashesIfNeeded()
|
||||
.catch(err => logger.error('Cannot update streaming playlist infohashes.', { err }))
|
||||
|
||||
if (cli.plugins) await PluginManager.Instance.registerPluginsAndThemes()
|
||||
if (cliOptions.plugins) await PluginManager.Instance.registerPluginsAndThemes()
|
||||
|
||||
LiveManager.Instance.init()
|
||||
if (CONFIG.LIVE.ENABLED) LiveManager.Instance.run()
|
||||
|
||||
Reference in New Issue
Block a user