aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-01-27 11:18:53 +0100
committerChocobozzz <florian.bigard@gmail.com>2017-01-27 11:18:53 +0100
commit9a5d2a3f54fbc4ef899988dd85cf65f92cc3ffff (patch)
tree97a98775f94f0c92baab7bbbf856ab7dc299451b
parentf7ac0f84e1135ce893be930da6d935216dac13d3 (diff)
downloadPeerTube-9a5d2a3f54fbc4ef899988dd85cf65f92cc3ffff.tar.gz
PeerTube-9a5d2a3f54fbc4ef899988dd85cf65f92cc3ffff.tar.zst
PeerTube-9a5d2a3f54fbc4ef899988dd85cf65f92cc3ffff.zip
Admin password stuff
-rw-r--r--README.md6
-rw-r--r--package.json1
-rwxr-xr-xscripts/help.sh35
-rwxr-xr-xscripts/reset-password.js2
4 files changed, 25 insertions, 19 deletions
diff --git a/README.md b/README.md
index a25f058f8..a1198019c 100644
--- a/README.md
+++ b/README.md
@@ -154,6 +154,10 @@ Finally, run the server with the `production` `NODE_ENV` variable set.
154 154
155 $ NODE_ENV=production npm start 155 $ NODE_ENV=production npm start
156 156
157The administrator password is automatically generated and can be found in the logs. You can set another password with:
158
159 $ NODE_ENV=production npm run reset-password -- -u root
160
157**Nginx template** (reverse proxy): https://github.com/Chocobozzz/PeerTube/tree/master/support/nginx 161**Nginx template** (reverse proxy): https://github.com/Chocobozzz/PeerTube/tree/master/support/nginx
158 162
159**Systemd template**: https://github.com/Chocobozzz/PeerTube/tree/master/support/systemd 163**Systemd template**: https://github.com/Chocobozzz/PeerTube/tree/master/support/systemd
@@ -176,6 +180,8 @@ In this mode, the server will run requests between pods more quickly, the videos
176 180
177 $ npm run dev 181 $ npm run dev
178 182
183The administrator password is displayed in the command output and can be found in the logs.
184
179### Test with 3 fresh nodes 185### Test with 3 fresh nodes
180 186
181 $ npm run clean:server:test 187 $ npm run clean:server:test
diff --git a/package.json b/package.json
index 010934a71..5a9e943c3 100644
--- a/package.json
+++ b/package.json
@@ -27,6 +27,7 @@
27 "danger:clean:dev": "scripty", 27 "danger:clean:dev": "scripty",
28 "danger:clean:prod": "scripty", 28 "danger:clean:prod": "scripty",
29 "danger:clean:modules": "scripty", 29 "danger:clean:modules": "scripty",
30 "reset-password": "scripty",
30 "play": "scripty", 31 "play": "scripty",
31 "dev": "scripty", 32 "dev": "scripty",
32 "start": "node server", 33 "start": "node server",
diff --git a/scripts/help.sh b/scripts/help.sh
index 23c460afa..bf4a51279 100755
--- a/scripts/help.sh
+++ b/scripts/help.sh
@@ -2,20 +2,21 @@
2 2
3printf "############# PeerTube help #############\n\n" 3printf "############# PeerTube help #############\n\n"
4printf "npm run ...\n" 4printf "npm run ...\n"
5printf " build -> Build the application for production (alias of build:client:prod)\n" 5printf " build -> Build the application for production (alias of build:client:prod)\n"
6printf " build:client:dev -> Build the client for development\n" 6printf " build:client:dev -> Build the client for development\n"
7printf " build:client:prod -> Build the client for production\n" 7printf " build:client:prod -> Build the client for production\n"
8printf " clean -> Clean the application\n" 8printf " clean -> Clean the application\n"
9printf " clean:client -> Clean the client build files (dist directory)\n" 9printf " clean:client -> Clean the client build files (dist directory)\n"
10printf " clean:server:test -> Clean certificates, logs, uploads and database of the test instances\n" 10printf " clean:server:test -> Clean certificates, logs, uploads and database of the test instances\n"
11printf " watch:client -> Watch the client files\n" 11printf " watch:client -> Watch the client files\n"
12printf " danger:clean:dev -> /!\ Clean certificates, logs, uploads, thumbnails, torrents and database specified in the development environment\n" 12printf " danger:clean:dev -> /!\ Clean certificates, logs, uploads, thumbnails, torrents and database specified in the development environment\n"
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 " dev -> Watch, run the livereload and run the server so that you can develop the application\n" 16printf " reset-password -- -u [user] -> Reset the password of user [user]\n",
17printf " start -> Run the server\n" 17printf " dev -> Watch, run the livereload and run the server so that you can develop the application\n"
18printf " check -> Check the server (according to NODE_ENV)\n" 18printf " start -> Run the server\n"
19printf " upgrade -- [branch] -> Upgrade the application according to the [branch] parameter\n" 19printf " check -> Check the server (according to NODE_ENV)\n"
20printf " test -> Run the tests\n" 20printf " upgrade -- [branch] -> Upgrade the application according to the [branch] parameter\n"
21printf " help -> Print this help\n" 21printf " test -> Run the tests\n"
22printf " help -> Print this help\n"
diff --git a/scripts/reset-password.js b/scripts/reset-password.js
index 5ae3af9ea..49a481a18 100755
--- a/scripts/reset-password.js
+++ b/scripts/reset-password.js
@@ -2,8 +2,6 @@
2 2
3'use strict' 3'use strict'
4 4
5// TODO: document this script
6
7const program = require('commander') 5const program = require('commander')
8 6
9const db = require('../server/initializers/database') 7const db = require('../server/initializers/database')