X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=support%2Fdoc%2Ftools.md;h=d83203369cc3ee8813f22c16d45300c14a1d9a76;hb=48dce1c90dff4e90a4bcffefaecf157336cf904b;hp=4e431b3d49ebc3a108a64d294c1165b0079bb989;hpb=358770dbbd88136b211090832b24cf3d5b648234;p=github%2FChocobozzz%2FPeerTube.git diff --git a/support/doc/tools.md b/support/doc/tools.md index 4e431b3d4..d83203369 100644 --- a/support/doc/tools.md +++ b/support/doc/tools.md @@ -2,15 +2,16 @@ - [Installation](#installation) - [Usage](#usage) - - [import-videos.js](#import-videos.js) - - [upload.js](#upload) + - [import-videos.js](#import-videosjs) + - [upload.js](#uploadjs) ## Installation ## Prerequisites -You need at least 512MB RAM to run the script. -Scripts can be launched directly from a PeerTube server (in this case you already have dependencies installed :+1:) or from a separate server, even a dekstop PC. +You need at least 512MB RAM to run the script. +Scripts can be launched directly from a PeerTube server, or from a separate server, even a desktop PC. +You need to follow all the following steps even if you are on a PeerTube server. ### Dependencies @@ -18,23 +19,23 @@ Install the [PeerTube dependencies](dependencies.md). ### Installation -Clone the PeerTube repo to get the latest version: +Clone the PeerTube repo to get the latest version (even if you are on your PeerTube server): ``` -git clone https://github.com/Chocobozzz/PeerTube.git -CLONE="$(pwd)/PeerTube" +$ git clone https://github.com/Chocobozzz/PeerTube.git +$ CLONE="$(pwd)/PeerTube" ``` Run ``yarn install`` ``` -cd ${CLONE} -yarn install +$ cd ${CLONE} +$ yarn install ``` Build server tools: ``` -cd ${CLONE} -npm run build:server +$ cd ${CLONE} +$ npm run build:server ``` ## Tools @@ -46,8 +47,8 @@ Be sure you own the videos or have the author's authorization to do so. ``` -cd ${CLONE} -node dist/server/tools/import-videos.js -u "PEERTUBE_URL" -U "PEERTUBE_USER" --password "PEERTUBE_PASSWORD" -t "TARGET_URL" +$ cd ${CLONE} +$ node dist/server/tools/import-videos.js -u "PEERTUBE_URL" -U "PEERTUBE_USER" --password "PEERTUBE_PASSWORD" -t "TARGET_URL" ``` * PEERTUBE_URL : the full URL of your PeerTube server where you want to import, eg: https://peertube.cpy.re/ @@ -69,6 +70,6 @@ node dist/server/tools/import-videos.js -u "PEERTUBE_URL" -U "PEERTUBE_USER" --p You can use this script to import videos directly from the CLI. ``` -cd ${CLONE} -node dist/server/tools/upload.js --help +$ cd ${CLONE} +$ node dist/server/tools/upload.js --help ```