aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--support/doc/production.md41
1 files changed, 38 insertions, 3 deletions
diff --git a/support/doc/production.md b/support/doc/production.md
index 0498bf1fc..8963f35ff 100644
--- a/support/doc/production.md
+++ b/support/doc/production.md
@@ -200,13 +200,16 @@ Now your instance is up you can:
200 200
201## Upgrade 201## Upgrade
202 202
203### PeerTube code
204
205**Check the changelog (in particular BREAKING CHANGES!):** https://github.com/Chocobozzz/PeerTube/blob/develop/CHANGELOG.md
206
203#### Auto (minor versions only) 207#### Auto (minor versions only)
204 208
205The password it asks is PeerTube's database user password. 209The password it asks is PeerTube's database user password.
206 210
207``` 211```
208$ cd /var/www/peertube/peertube-latest/scripts && sudo -H -u peertube ./upgrade.sh 212$ cd /var/www/peertube/peertube-latest/scripts && sudo -H -u peertube ./upgrade.sh
209$ sudo systemctl restart peertube && sudo journalctl -fu peertube
210``` 213```
211 214
212#### Manually 215#### Manually
@@ -256,10 +259,42 @@ $ cd /var/www/peertube && \
256 sudo -u peertube ln -s versions/peertube-${VERSION} ./peertube-latest 259 sudo -u peertube ln -s versions/peertube-${VERSION} ./peertube-latest
257``` 260```
258 261
262### nginx
263
264Check changes in nginx configuration:
265
266```
267$ cd /var/www/peertube/versions
268$ diff "$(ls --sort=t | head -2 | tail -1)/support/nginx/peertube" "$(ls --sort=t | head -1)/support/nginx/peertube"
269```
270
271### systemd
272
273Check changes in systemd configuration:
274
275```
276$ cd /var/www/peertube/versions
277$ diff "$(ls --sort=t | head -2 | tail -1)/support/systemd/peertube.service" "$(ls --sort=t | head -1)/support/systemd/peertube.service"
278```
279
280### Restart PeerTube
281
282If you changed your nginx configuration:
283
284```
285$ sudo systemctl reload nginx
286```
287
288If you changed your systemd configuration:
259 289
260Restart PeerTube:
261``` 290```
262$ sudo systemctl restart peertube 291$ sudo systemctl daemon-reload
292```
293
294Restart PeerTube and check the logs:
295
296```
297$ sudo systemctl restart peertube && sudo journalctl -fu peertube
263``` 298```
264 299
265### Things went wrong? 300### Things went wrong?