aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-02-08 20:36:57 +0100
committerChocobozzz <florian.bigard@gmail.com>2017-02-08 20:36:57 +0100
commit01a07456e476237b7f78fddb3ea815537fc35af0 (patch)
treeb9ff989597819cf8d2c6a256d8efd4f37e15a70c
parent9cc99d7b569765412c9898cfd5452dba5ee5e4b4 (diff)
downloadPeerTube-01a07456e476237b7f78fddb3ea815537fc35af0.tar.gz
PeerTube-01a07456e476237b7f78fddb3ea815537fc35af0.tar.zst
PeerTube-01a07456e476237b7f78fddb3ea815537fc35af0.zip
Document update host script
-rwxr-xr-xscripts/help.sh3
-rwxr-xr-xscripts/update-host.js2
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,
13printf " danger:clean:prod -> /!\ Clean certificates, logs, uploads, thumbnails, torrents and database specified by the production environment\n" 13printf " danger:clean:prod -> /!\ Clean certificates, logs, uploads, thumbnails, torrents and database specified by the production environment\n"
14printf " danger:clean:modules -> /!\ Clean node and typescript modules\n" 14printf " danger:clean:modules -> /!\ Clean node and typescript modules\n"
15printf " play -> Run 3 fresh nodes so that you can test the communication between them\n" 15printf " play -> Run 3 fresh nodes so that you can test the communication between them\n"
16printf " reset-password -- -u [user] -> Reset the password of user [user]\n", 16printf " reset-password -- -u [user] -> Reset the password of user [user]\n"
17printf " dev -> Watch, run the livereload and run the server so that you can develop the application\n" 17printf " dev -> Watch, run the livereload and run the server so that you can develop the application\n"
18printf " start -> Run the server\n" 18printf " start -> Run the server\n"
19printf " check -> Check the server (according to NODE_ENV)\n" 19printf " check -> Check the server (according to NODE_ENV)\n"
20printf " upgrade -- [branch] -> Upgrade the application according to the [branch] parameter\n" 20printf " upgrade -- [branch] -> Upgrade the application according to the [branch] parameter\n"
21printf " update-host -> Upgrade scheme/host in torrent files according to the webserver configuration (config/ folder)\n"
21printf " test -> Run the tests\n" 22printf " test -> Run the tests\n"
22printf " help -> Print this help\n" 23printf " 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
7const fs = require('fs') 5const fs = require('fs')
8const parseTorrent = require('parse-torrent') 6const parseTorrent = require('parse-torrent')
9 7