Skip to content
Snippets Groups Projects
Commit 66e001c8 authored by Chocobozzz's avatar Chocobozzz Committed by Chocobozzz
Browse files

Add ability to disable plugins/themes from CLI

parent 9fa6ca16
No related branches found
No related tags found
No related merge requests found
...@@ -119,6 +119,7 @@ import { PluginsCheckScheduler } from './server/lib/schedulers/plugins-check-sch ...@@ -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 () { ...@@ -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, () => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment