Add ability to disable plugins/themes from CLI
This commit is contained in:
parent
9fa6ca160a
commit
66e001c848
1 changed files with 2 additions and 1 deletions
|
@ -119,6 +119,7 @@ import { PluginsCheckScheduler } from './server/lib/schedulers/plugins-check-sch
|
||||||
|
|
||||||
cli
|
cli
|
||||||
.option('--no-client', 'Start PeerTube without client interface')
|
.option('--no-client', 'Start PeerTube without client interface')
|
||||||
|
.option('--no-plugins', 'Start PeerTube without plugins/themes enabled')
|
||||||
.parse(process.argv)
|
.parse(process.argv)
|
||||||
|
|
||||||
// ----------- App -----------
|
// ----------- App -----------
|
||||||
|
@ -261,7 +262,7 @@ async function startApplication () {
|
||||||
updateStreamingPlaylistsInfohashesIfNeeded()
|
updateStreamingPlaylistsInfohashesIfNeeded()
|
||||||
.catch(err => logger.error('Cannot update streaming playlist infohashes.', { err }))
|
.catch(err => logger.error('Cannot update streaming playlist infohashes.', { err }))
|
||||||
|
|
||||||
await PluginManager.Instance.registerPluginsAndThemes()
|
if (cli.plugins) await PluginManager.Instance.registerPluginsAndThemes()
|
||||||
|
|
||||||
// Make server listening
|
// Make server listening
|
||||||
server.listen(port, hostname, () => {
|
server.listen(port, hostname, () => {
|
||||||
|
|
Loading…
Reference in a new issue