X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;ds=sidebyside;f=support%2Fdoc%2Fproduction.md;h=ea0a983951f8f8afa9c24a111667128b44d18073;hb=7f6ff4622220443a674eca1d67e74acb80b26798;hp=3c75b6cab8b7a91a3d9028e890d69c0b7be3f7a8;hpb=fc10ecf167bd07f32426441e74b49370d5ff919b;p=github%2FChocobozzz%2FPeerTube.git diff --git a/support/doc/production.md b/support/doc/production.md index 3c75b6cab..ea0a98395 100644 --- a/support/doc/production.md +++ b/support/doc/production.md @@ -328,7 +328,7 @@ Copy new configuration defaults values and update your configuration file: ```bash $ sudo -u peertube cp /var/www/peertube/versions/peertube-${VERSION}/config/default.yaml /var/www/peertube/config/default.yaml -$ diff /var/www/peertube/versions/peertube-${VERSION}/config/production.yaml.example /var/www/peertube/config/production.yaml +$ diff -u /var/www/peertube/versions/peertube-${VERSION}/config/production.yaml.example /var/www/peertube/config/production.yaml ``` Change the link to point to the latest version: @@ -339,13 +339,22 @@ $ cd /var/www/peertube && \ sudo -u peertube ln -s versions/peertube-${VERSION} ./peertube-latest ``` +### Configuration + +You can check for configuration changes, and report them in your `config/production.yaml` file: + +```bash +$ cd /var/www/peertube/versions +$ diff -u "$(ls --sort=t | head -2 | tail -1)/config/production.yaml.example" "$(ls --sort=t | head -1)/config/production.yaml.example" +``` + ### nginx Check changes in nginx configuration: ```bash $ cd /var/www/peertube/versions -$ diff "$(ls --sort=t | head -2 | tail -1)/support/nginx/peertube" "$(ls --sort=t | head -1)/support/nginx/peertube" +$ diff -u "$(ls --sort=t | head -2 | tail -1)/support/nginx/peertube" "$(ls --sort=t | head -1)/support/nginx/peertube" ``` ### systemd @@ -354,7 +363,7 @@ Check changes in systemd configuration: ```bash $ cd /var/www/peertube/versions -$ diff "$(ls --sort=t | head -2 | tail -1)/support/systemd/peertube.service" "$(ls --sort=t | head -1)/support/systemd/peertube.service" +$ diff -u "$(ls --sort=t | head -2 | tail -1)/support/systemd/peertube.service" "$(ls --sort=t | head -1)/support/systemd/peertube.service" ``` ### Restart PeerTube