diff options
author | Chocobozzz <me@florianbigard.com> | 2018-06-21 18:29:28 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-06-21 18:36:08 +0200 |
commit | 23687332e6d7972c6a0eee30ce9056e45dec022b (patch) | |
tree | e29e6128582e69ca815f294aa9c269dcc20ff372 /support/doc/tools.md | |
parent | 2336a0e7fb5d3d4c6d1489e6882b1fa24975d8c7 (diff) | |
download | PeerTube-23687332e6d7972c6a0eee30ce9056e45dec022b.tar.gz PeerTube-23687332e6d7972c6a0eee30ce9056e45dec022b.tar.zst PeerTube-23687332e6d7972c6a0eee30ce9056e45dec022b.zip |
Improve update host script and add warning if AP urls are invalid
Diffstat (limited to 'support/doc/tools.md')
-rw-r--r-- | support/doc/tools.md | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/support/doc/tools.md b/support/doc/tools.md index 0addc0803..cb3944595 100644 --- a/support/doc/tools.md +++ b/support/doc/tools.md | |||
@@ -113,4 +113,13 @@ To delete them (a confirmation will be demanded first): | |||
113 | 113 | ||
114 | ``` | 114 | ``` |
115 | $ sudo -u peertube NODE_CONFIG_DIR=/var/www/peertube/config NODE_ENV=production npm run prune-storage | 115 | $ sudo -u peertube NODE_CONFIG_DIR=/var/www/peertube/config NODE_ENV=production npm run prune-storage |
116 | ``` | ||
117 | |||
118 | ### update-host.js | ||
119 | |||
120 | If you started PeerTube with a domain, and then changed it you will have invalid torrent files and invalid URLs in your database. | ||
121 | To fix this, you have to run: | ||
122 | |||
123 | ``` | ||
124 | $ sudo -u peertube NODE_CONFIG_DIR=/var/www/peertube/config NODE_ENV=production npm run update-host | ||
116 | ``` \ No newline at end of file | 125 | ``` \ No newline at end of file |