diff options
author | Chocobozzz <me@florianbigard.com> | 2021-03-12 17:04:49 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-03-24 18:18:41 +0100 |
commit | c2bd7a6fcff652b149b24a642314c88e56a07f48 (patch) | |
tree | 3e123d1e04b814cc94d1c7ef2526466352095ab5 /support | |
parent | a784bd7fdef5a0b39d302c2a17aa1706148b2d2e (diff) | |
download | PeerTube-c2bd7a6fcff652b149b24a642314c88e56a07f48.tar.gz PeerTube-c2bd7a6fcff652b149b24a642314c88e56a07f48.tar.zst PeerTube-c2bd7a6fcff652b149b24a642314c88e56a07f48.zip |
Add regenrate thumbnails scripts
Diffstat (limited to 'support')
-rw-r--r-- | support/doc/tools.md | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/support/doc/tools.md b/support/doc/tools.md index da32506bd..175c22cd8 100644 --- a/support/doc/tools.md +++ b/support/doc/tools.md | |||
@@ -15,6 +15,7 @@ | |||
15 | - [peertube-redundancy.js](#peertube-redundancyjs) | 15 | - [peertube-redundancy.js](#peertube-redundancyjs) |
16 | - [Server tools](#server-tools) | 16 | - [Server tools](#server-tools) |
17 | - [parse-log](#parse-log) | 17 | - [parse-log](#parse-log) |
18 | - [regenerate-thumbnails.js](#regenerate-thumbnailsjs) | ||
18 | - [create-transcoding-job.js](#create-transcoding-jobjs) | 19 | - [create-transcoding-job.js](#create-transcoding-jobjs) |
19 | - [create-import-video-file-job.js](#create-import-video-file-jobjs) | 20 | - [create-import-video-file-job.js](#create-import-video-file-jobjs) |
20 | - [prune-storage.js](#prune-storagejs) | 21 | - [prune-storage.js](#prune-storagejs) |
@@ -251,6 +252,15 @@ $ cd /var/www/peertube/peertube-latest | |||
251 | $ sudo -u peertube NODE_CONFIG_DIR=/var/www/peertube/config NODE_ENV=production npm run parse-log -- --level debug --not-tags http sql | 252 | $ sudo -u peertube NODE_CONFIG_DIR=/var/www/peertube/config NODE_ENV=production npm run parse-log -- --level debug --not-tags http sql |
252 | ``` | 253 | ``` |
253 | 254 | ||
255 | ### regenerate-thumbnails.js | ||
256 | |||
257 | Regenerating local video thumbnails could be useful because new PeerTube releases may increase thumbnail sizes: | ||
258 | |||
259 | ``` | ||
260 | $ cd /var/www/peertube/peertube-latest | ||
261 | $ sudo -u peertube NODE_CONFIG_DIR=/var/www/peertube/config NODE_ENV=production npm run regenerate-thumbnails | ||
262 | ``` | ||
263 | |||
254 | ### create-transcoding-job.js | 264 | ### create-transcoding-job.js |
255 | 265 | ||
256 | You can use this script to force transcoding of an existing video. PeerTube needs to be running. | 266 | You can use this script to force transcoding of an existing video. PeerTube needs to be running. |