diff options
Diffstat (limited to 'support/doc')
-rw-r--r-- | support/doc/development/release.md | 1 | ||||
-rw-r--r-- | support/doc/production.md | 14 |
2 files changed, 12 insertions, 3 deletions
diff --git a/support/doc/development/release.md b/support/doc/development/release.md index a9a3ca452..d62969cf2 100644 --- a/support/doc/development/release.md +++ b/support/doc/development/release.md | |||
@@ -15,6 +15,7 @@ NODE_APP_INSTANCE=6 NODE_ENV=test node dist/server --benchmark-startup | |||
15 | * Check CI tests are green | 15 | * Check CI tests are green |
16 | * Run BrowserStack **and** local E2E tests | 16 | * Run BrowserStack **and** local E2E tests |
17 | * Release: `GITHUB_TOKEN=my_token npm run release -- 1.x.x` | 17 | * Release: `GITHUB_TOKEN=my_token npm run release -- 1.x.x` |
18 | * Upload `tar.xz` on https://builds.joinpeertube.org/release | ||
18 | * Create a dedicated branch: `git checkout -b release/1.x.x && git push origin release/1.x.x` | 19 | * Create a dedicated branch: `git checkout -b release/1.x.x && git push origin release/1.x.x` |
19 | * Check the release is okay: https://github.com/Chocobozzz/PeerTube/releases | 20 | * Check the release is okay: https://github.com/Chocobozzz/PeerTube/releases |
20 | * Update https://peertube3.cpy.re and check it works correctly | 21 | * Update https://peertube3.cpy.re and check it works correctly |
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 |