diff options
author | LecygneNoir <victor.jlc@laposte.net> | 2018-02-19 09:42:43 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-02-19 09:42:43 +0100 |
commit | 2519d9fec6f84906d1b10770be791ad367186ca7 (patch) | |
tree | 935b88ac0c71b60b207797452a1c326cb84c14e4 /support/doc/production.md | |
parent | d5b53822ae7e1660cebe3a35be5ce76ea73dc1b9 (diff) | |
download | PeerTube-2519d9fec6f84906d1b10770be791ad367186ca7.tar.gz PeerTube-2519d9fec6f84906d1b10770be791ad367186ca7.tar.zst PeerTube-2519d9fec6f84906d1b10770be791ad367186ca7.zip |
add import-youtube guide inside documentation (#298)
* add import-youtube guide inside documentation
* safer to use unlink instead of rm to delete symbolic link, avoid risk of deleting entire directories in case of syntax error
* spelling mistake corrections
* anonymise URLs
* git also needed as dependencies to run yarn install
Diffstat (limited to 'support/doc/production.md')
-rw-r--r-- | support/doc/production.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/support/doc/production.md b/support/doc/production.md index fc2bd460a..6d6cd68f8 100644 --- a/support/doc/production.md +++ b/support/doc/production.md | |||
@@ -202,7 +202,7 @@ Change the link to point to the latest version: | |||
202 | 202 | ||
203 | ``` | 203 | ``` |
204 | $ cd /var/www/peertube && \ | 204 | $ cd /var/www/peertube && \ |
205 | sudo rm ./peertube-latest && \ | 205 | sudo unlink ./peertube-latest && \ |
206 | sudo -u peertube ln -s versions/peertube-${VERSION} ./peertube-latest | 206 | sudo -u peertube ln -s versions/peertube-${VERSION} ./peertube-latest |
207 | ``` | 207 | ``` |
208 | 208 | ||
@@ -218,7 +218,7 @@ Change `peertube-latest` destination to the previous version and restore your SQ | |||
218 | 218 | ||
219 | ``` | 219 | ``` |
220 | $ OLD_VERSION="v0.42.42" && SQL_BACKUP_PATH="backup/sql-peertube_prod-2018-01-19T10:18+01:00.bak" && \ | 220 | $ OLD_VERSION="v0.42.42" && SQL_BACKUP_PATH="backup/sql-peertube_prod-2018-01-19T10:18+01:00.bak" && \ |
221 | cd /var/www/peertube && rm ./peertube-latest && \ | 221 | cd /var/www/peertube && unlink ./peertube-latest && \ |
222 | sudo -u peertube ln -s "versions/peertube-$OLD_VERSION" peertube-latest && \ | 222 | sudo -u peertube ln -s "versions/peertube-$OLD_VERSION" peertube-latest && \ |
223 | pg_restore -U peertube -W -h localhost -c -d peertube_prod "$SQL_BACKUP_PATH" | 223 | pg_restore -U peertube -W -h localhost -c -d peertube_prod "$SQL_BACKUP_PATH" |
224 | sudo systemctl restart peertube | 224 | sudo systemctl restart peertube |