diff options
author | Chocobozzz <me@florianbigard.com> | 2019-07-17 15:49:40 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2019-07-24 10:58:16 +0200 |
commit | 66e001c848c009412c65cbce41be344d8985fd83 (patch) | |
tree | 09306bae4ac683268f5334a4c30fe043da426afb /server.ts | |
parent | 9fa6ca160a9dda057c3980c6ee19f0ee426fd0a0 (diff) | |
download | PeerTube-66e001c848c009412c65cbce41be344d8985fd83.tar.gz PeerTube-66e001c848c009412c65cbce41be344d8985fd83.tar.zst PeerTube-66e001c848c009412c65cbce41be344d8985fd83.zip |
Add ability to disable plugins/themes from CLI
Diffstat (limited to 'server.ts')
-rw-r--r-- | server.ts | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -119,6 +119,7 @@ import { PluginsCheckScheduler } from './server/lib/schedulers/plugins-check-sch | |||
119 | 119 | ||
120 | cli | 120 | cli |
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, () => { |