diff options
Diffstat (limited to 'support/doc/tools.md')
-rw-r--r-- | support/doc/tools.md | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/support/doc/tools.md b/support/doc/tools.md index 144c2bd7a..d83203369 100644 --- a/support/doc/tools.md +++ b/support/doc/tools.md | |||
@@ -11,6 +11,7 @@ | |||
11 | 11 | ||
12 | You need at least 512MB RAM to run the script. | 12 | You need at least 512MB RAM to run the script. |
13 | Scripts can be launched directly from a PeerTube server, or from a separate server, even a desktop PC. | 13 | Scripts can be launched directly from a PeerTube server, or from a separate server, even a desktop PC. |
14 | You need to follow all the following steps even if you are on a PeerTube server. | ||
14 | 15 | ||
15 | ### Dependencies | 16 | ### Dependencies |
16 | 17 | ||
@@ -21,20 +22,20 @@ Install the [PeerTube dependencies](dependencies.md). | |||
21 | Clone the PeerTube repo to get the latest version (even if you are on your PeerTube server): | 22 | Clone the PeerTube repo to get the latest version (even if you are on your PeerTube server): |
22 | 23 | ||
23 | ``` | 24 | ``` |
24 | git clone https://github.com/Chocobozzz/PeerTube.git | 25 | $ git clone https://github.com/Chocobozzz/PeerTube.git |
25 | CLONE="$(pwd)/PeerTube" | 26 | $ CLONE="$(pwd)/PeerTube" |
26 | ``` | 27 | ``` |
27 | 28 | ||
28 | Run ``yarn install`` | 29 | Run ``yarn install`` |
29 | ``` | 30 | ``` |
30 | cd ${CLONE} | 31 | $ cd ${CLONE} |
31 | yarn install | 32 | $ yarn install |
32 | ``` | 33 | ``` |
33 | 34 | ||
34 | Build server tools: | 35 | Build server tools: |
35 | ``` | 36 | ``` |
36 | cd ${CLONE} | 37 | $ cd ${CLONE} |
37 | npm run build:server | 38 | $ npm run build:server |
38 | ``` | 39 | ``` |
39 | 40 | ||
40 | ## Tools | 41 | ## Tools |
@@ -46,8 +47,8 @@ Be sure you own the videos or have the author's authorization to do so. | |||
46 | 47 | ||
47 | 48 | ||
48 | ``` | 49 | ``` |
49 | cd ${CLONE} | 50 | $ cd ${CLONE} |
50 | node dist/server/tools/import-videos.js -u "PEERTUBE_URL" -U "PEERTUBE_USER" --password "PEERTUBE_PASSWORD" -t "TARGET_URL" | 51 | $ node dist/server/tools/import-videos.js -u "PEERTUBE_URL" -U "PEERTUBE_USER" --password "PEERTUBE_PASSWORD" -t "TARGET_URL" |
51 | ``` | 52 | ``` |
52 | 53 | ||
53 | * PEERTUBE_URL : the full URL of your PeerTube server where you want to import, eg: https://peertube.cpy.re/ | 54 | * 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 | |||
69 | You can use this script to import videos directly from the CLI. | 70 | You can use this script to import videos directly from the CLI. |
70 | 71 | ||
71 | ``` | 72 | ``` |
72 | cd ${CLONE} | 73 | $ cd ${CLONE} |
73 | node dist/server/tools/upload.js --help | 74 | $ node dist/server/tools/upload.js --help |
74 | ``` | 75 | ``` |