X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;ds=sidebyside;f=support%2Fdoc%2Fproduction.md;h=48ecf1517e0b20973e425cdf5ac42ea43725a248;hb=d0800f7661f13fabe7bb6f4aa0ea50764f106405;hp=e711f09979f273304383004cb0c27eedeb443fb9;hpb=0882c8e6509b2a4ea48f6c48ecb2aa4aa371500a;p=github%2FChocobozzz%2FPeerTube.git diff --git a/support/doc/production.md b/support/doc/production.md index e711f0997..48ecf1517 100644 --- a/support/doc/production.md +++ b/support/doc/production.md @@ -58,26 +58,34 @@ $ sudo -u postgres psql -c "CREATE EXTENSION unaccent;" peertube_prod ### :page_facing_up: Prepare PeerTube directory -Fetch the latest tagged version of Peertube +Fetch the latest tagged version of Peertube: + ```bash $ VERSION=$(curl -s https://api.github.com/repos/chocobozzz/peertube/releases/latest | grep tag_name | cut -d '"' -f 4) && echo "Latest Peertube version is $VERSION" ``` -Open the peertube directory, create a few required directories + +Open the peertube directory, create a few required directories: + ```bash $ cd /var/www/peertube $ sudo -u peertube mkdir config storage versions $ sudo -u peertube chmod 750 config/ ``` -Download the latest version of the Peertube client, unzip it and remove the zip + +Download the latest version of the Peertube client, unzip it and remove the zip: + ```bash $ cd /var/www/peertube/versions +$ # Releases are also available on https://builds.joinpeertube.org/release $ sudo -u peertube wget -q "https://github.com/Chocobozzz/PeerTube/releases/download/${VERSION}/peertube-${VERSION}.zip" $ sudo -u peertube unzip -q peertube-${VERSION}.zip && sudo -u peertube rm peertube-${VERSION}.zip ``` + Install Peertube: + ```bash $ cd /var/www/peertube $ sudo -u peertube ln -s versions/peertube-${VERSION} ./peertube-latest