From 01a07456e476237b7f78fddb3ea815537fc35af0 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 8 Feb 2017 20:36:57 +0100 Subject: [PATCH] Document update host script --- scripts/help.sh | 3 ++- 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, printf " danger:clean:prod -> /!\ Clean certificates, logs, uploads, thumbnails, torrents and database specified by the production environment\n" printf " danger:clean:modules -> /!\ Clean node and typescript modules\n" printf " play -> Run 3 fresh nodes so that you can test the communication between them\n" -printf " reset-password -- -u [user] -> Reset the password of user [user]\n", +printf " reset-password -- -u [user] -> Reset the password of user [user]\n" printf " dev -> Watch, run the livereload and run the server so that you can develop the application\n" printf " start -> Run the server\n" printf " check -> Check the server (according to NODE_ENV)\n" printf " upgrade -- [branch] -> Upgrade the application according to the [branch] parameter\n" +printf " update-host -> Upgrade scheme/host in torrent files according to the webserver configuration (config/ folder)\n" printf " test -> Run the tests\n" 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 @@ 'use strict' -// TODO: document this script - const fs = require('fs') const parseTorrent = require('parse-torrent')