diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-02-08 20:36:57 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-02-08 20:36:57 +0100 |
commit | 01a07456e476237b7f78fddb3ea815537fc35af0 (patch) | |
tree | b9ff989597819cf8d2c6a256d8efd4f37e15a70c | |
parent | 9cc99d7b569765412c9898cfd5452dba5ee5e4b4 (diff) | |
download | PeerTube-01a07456e476237b7f78fddb3ea815537fc35af0.tar.gz PeerTube-01a07456e476237b7f78fddb3ea815537fc35af0.tar.zst PeerTube-01a07456e476237b7f78fddb3ea815537fc35af0.zip |
Document update host script
-rwxr-xr-x | scripts/help.sh | 3 | ||||
-rwxr-xr-x | scripts/update-host.js | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/scripts/help.sh b/scripts/help.sh index bf4a51279..0f672d520 100755 --- a/scripts/help.sh +++ b/scripts/help.sh | |||
@@ -13,10 +13,11 @@ printf " danger:clean:dev -> /!\ Clean certificates, logs, uploads, | |||
13 | printf " danger:clean:prod -> /!\ Clean certificates, logs, uploads, thumbnails, torrents and database specified by the production environment\n" | 13 | printf " danger:clean:prod -> /!\ Clean certificates, logs, uploads, thumbnails, torrents and database specified by the production environment\n" |
14 | printf " danger:clean:modules -> /!\ Clean node and typescript modules\n" | 14 | printf " danger:clean:modules -> /!\ Clean node and typescript modules\n" |
15 | printf " play -> Run 3 fresh nodes so that you can test the communication between them\n" | 15 | printf " play -> Run 3 fresh nodes so that you can test the communication between them\n" |
16 | printf " reset-password -- -u [user] -> Reset the password of user [user]\n", | 16 | printf " reset-password -- -u [user] -> Reset the password of user [user]\n" |
17 | printf " dev -> Watch, run the livereload and run the server so that you can develop the application\n" | 17 | printf " dev -> Watch, run the livereload and run the server so that you can develop the application\n" |
18 | printf " start -> Run the server\n" | 18 | printf " start -> Run the server\n" |
19 | printf " check -> Check the server (according to NODE_ENV)\n" | 19 | printf " check -> Check the server (according to NODE_ENV)\n" |
20 | printf " upgrade -- [branch] -> Upgrade the application according to the [branch] parameter\n" | 20 | printf " upgrade -- [branch] -> Upgrade the application according to the [branch] parameter\n" |
21 | printf " update-host -> Upgrade scheme/host in torrent files according to the webserver configuration (config/ folder)\n" | ||
21 | printf " test -> Run the tests\n" | 22 | printf " test -> Run the tests\n" |
22 | printf " help -> Print this help\n" | 23 | printf " help -> Print this help\n" |
diff --git a/scripts/update-host.js b/scripts/update-host.js index 18e35386c..8ae0f0d0e 100755 --- a/scripts/update-host.js +++ b/scripts/update-host.js | |||
@@ -2,8 +2,6 @@ | |||
2 | 2 | ||
3 | 'use strict' | 3 | 'use strict' |
4 | 4 | ||
5 | // TODO: document this script | ||
6 | |||
7 | const fs = require('fs') | 5 | const fs = require('fs') |
8 | const parseTorrent = require('parse-torrent') | 6 | const parseTorrent = require('parse-torrent') |
9 | 7 | ||