diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-01-27 11:18:53 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-01-27 11:18:53 +0100 |
commit | 9a5d2a3f54fbc4ef899988dd85cf65f92cc3ffff (patch) | |
tree | 97a98775f94f0c92baab7bbbf856ab7dc299451b | |
parent | f7ac0f84e1135ce893be930da6d935216dac13d3 (diff) | |
download | PeerTube-9a5d2a3f54fbc4ef899988dd85cf65f92cc3ffff.tar.gz PeerTube-9a5d2a3f54fbc4ef899988dd85cf65f92cc3ffff.tar.zst PeerTube-9a5d2a3f54fbc4ef899988dd85cf65f92cc3ffff.zip |
Admin password stuff
-rw-r--r-- | README.md | 6 | ||||
-rw-r--r-- | package.json | 1 | ||||
-rwxr-xr-x | scripts/help.sh | 35 | ||||
-rwxr-xr-x | scripts/reset-password.js | 2 |
4 files changed, 25 insertions, 19 deletions
@@ -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 | ||
157 | The 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 | ||
183 | The 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 | ||
3 | printf "############# PeerTube help #############\n\n" | 3 | printf "############# PeerTube help #############\n\n" |
4 | printf "npm run ...\n" | 4 | printf "npm run ...\n" |
5 | printf " build -> Build the application for production (alias of build:client:prod)\n" | 5 | printf " build -> Build the application for production (alias of build:client:prod)\n" |
6 | printf " build:client:dev -> Build the client for development\n" | 6 | printf " build:client:dev -> Build the client for development\n" |
7 | printf " build:client:prod -> Build the client for production\n" | 7 | printf " build:client:prod -> Build the client for production\n" |
8 | printf " clean -> Clean the application\n" | 8 | printf " clean -> Clean the application\n" |
9 | printf " clean:client -> Clean the client build files (dist directory)\n" | 9 | printf " clean:client -> Clean the client build files (dist directory)\n" |
10 | printf " clean:server:test -> Clean certificates, logs, uploads and database of the test instances\n" | 10 | printf " clean:server:test -> Clean certificates, logs, uploads and database of the test instances\n" |
11 | printf " watch:client -> Watch the client files\n" | 11 | printf " watch:client -> Watch the client files\n" |
12 | printf " danger:clean:dev -> /!\ Clean certificates, logs, uploads, thumbnails, torrents and database specified in the development environment\n" | 12 | printf " danger:clean:dev -> /!\ Clean certificates, logs, uploads, thumbnails, torrents and database specified in the development environment\n" |
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 " dev -> Watch, run the livereload and run the server so that you can develop the application\n" | 16 | printf " reset-password -- -u [user] -> Reset the password of user [user]\n", |
17 | printf " start -> Run the server\n" | 17 | printf " dev -> Watch, run the livereload and run the server so that you can develop the application\n" |
18 | printf " check -> Check the server (according to NODE_ENV)\n" | 18 | printf " start -> Run the server\n" |
19 | printf " upgrade -- [branch] -> Upgrade the application according to the [branch] parameter\n" | 19 | printf " check -> Check the server (according to NODE_ENV)\n" |
20 | printf " test -> Run the tests\n" | 20 | printf " upgrade -- [branch] -> Upgrade the application according to the [branch] parameter\n" |
21 | printf " help -> Print this help\n" | 21 | printf " test -> Run the tests\n" |
22 | printf " 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 | |||
7 | const program = require('commander') | 5 | const program = require('commander') |
8 | 6 | ||
9 | const db = require('../server/initializers/database') | 7 | const db = require('../server/initializers/database') |