aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-07-17 15:49:40 +0200
committerChocobozzz <chocobozzz@cpy.re>2019-07-24 10:58:16 +0200
commit66e001c848c009412c65cbce41be344d8985fd83 (patch)
tree09306bae4ac683268f5334a4c30fe043da426afb
parent9fa6ca160a9dda057c3980c6ee19f0ee426fd0a0 (diff)
downloadPeerTube-66e001c848c009412c65cbce41be344d8985fd83.tar.gz
PeerTube-66e001c848c009412c65cbce41be344d8985fd83.tar.zst
PeerTube-66e001c848c009412c65cbce41be344d8985fd83.zip
Add ability to disable plugins/themes from CLI
-rw-r--r--server.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/server.ts b/server.ts
index 67abf4b5c..b75c78b07 100644
--- a/server.ts
+++ b/server.ts
@@ -119,6 +119,7 @@ import { PluginsCheckScheduler } from './server/lib/schedulers/plugins-check-sch
119 119
120cli 120cli
121 .option('--no-client', 'Start PeerTube without client interface') 121 .option('--no-client', 'Start PeerTube without client interface')
122 .option('--no-plugins', 'Start PeerTube without plugins/themes enabled')
122 .parse(process.argv) 123 .parse(process.argv)
123 124
124// ----------- App ----------- 125// ----------- App -----------
@@ -261,7 +262,7 @@ async function startApplication () {
261 updateStreamingPlaylistsInfohashesIfNeeded() 262 updateStreamingPlaylistsInfohashesIfNeeded()
262 .catch(err => logger.error('Cannot update streaming playlist infohashes.', { err })) 263 .catch(err => logger.error('Cannot update streaming playlist infohashes.', { err }))
263 264
264 await PluginManager.Instance.registerPluginsAndThemes() 265 if (cli.plugins) await PluginManager.Instance.registerPluginsAndThemes()
265 266
266 // Make server listening 267 // Make server listening
267 server.listen(port, hostname, () => { 268 server.listen(port, hostname, () => {