diff options
Diffstat (limited to 'support/doc/production.md')
-rw-r--r-- | support/doc/production.md | 14 |
1 files changed, 11 insertions, 3 deletions
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 | |||
58 | 58 | ||
59 | ### :page_facing_up: Prepare PeerTube directory | 59 | ### :page_facing_up: Prepare PeerTube directory |
60 | 60 | ||
61 | Fetch the latest tagged version of Peertube | 61 | Fetch the latest tagged version of Peertube: |
62 | |||
62 | ```bash | 63 | ```bash |
63 | $ 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" | 64 | $ 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" |
64 | ``` | 65 | ``` |
65 | 66 | ||
66 | Open the peertube directory, create a few required directories | 67 | |
68 | Open the peertube directory, create a few required directories: | ||
69 | |||
67 | ```bash | 70 | ```bash |
68 | $ cd /var/www/peertube | 71 | $ cd /var/www/peertube |
69 | $ sudo -u peertube mkdir config storage versions | 72 | $ sudo -u peertube mkdir config storage versions |
70 | $ sudo -u peertube chmod 750 config/ | 73 | $ sudo -u peertube chmod 750 config/ |
71 | ``` | 74 | ``` |
72 | 75 | ||
73 | Download the latest version of the Peertube client, unzip it and remove the zip | 76 | |
77 | Download the latest version of the Peertube client, unzip it and remove the zip: | ||
78 | |||
74 | ```bash | 79 | ```bash |
75 | $ cd /var/www/peertube/versions | 80 | $ cd /var/www/peertube/versions |
81 | $ # Releases are also available on https://builds.joinpeertube.org/release | ||
76 | $ sudo -u peertube wget -q "https://github.com/Chocobozzz/PeerTube/releases/download/${VERSION}/peertube-${VERSION}.zip" | 82 | $ sudo -u peertube wget -q "https://github.com/Chocobozzz/PeerTube/releases/download/${VERSION}/peertube-${VERSION}.zip" |
77 | $ sudo -u peertube unzip -q peertube-${VERSION}.zip && sudo -u peertube rm peertube-${VERSION}.zip | 83 | $ sudo -u peertube unzip -q peertube-${VERSION}.zip && sudo -u peertube rm peertube-${VERSION}.zip |
78 | ``` | 84 | ``` |
79 | 85 | ||
86 | |||
80 | Install Peertube: | 87 | Install Peertube: |
88 | |||
81 | ```bash | 89 | ```bash |
82 | $ cd /var/www/peertube | 90 | $ cd /var/www/peertube |
83 | $ sudo -u peertube ln -s versions/peertube-${VERSION} ./peertube-latest | 91 | $ sudo -u peertube ln -s versions/peertube-${VERSION} ./peertube-latest |