aboutsummaryrefslogtreecommitdiffhomepage
path: root/support/doc/production.md
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-01-12 18:55:45 +0100
committerChocobozzz <me@florianbigard.com>2018-01-12 18:55:45 +0100
commitafe817679974cec47f5bea1699cee3fe58cd5ada (patch)
tree1134780b1dc24191d0f8a66e3ff8f206e1ca2d36 /support/doc/production.md
parent63bfad7ec984dad1e9a96de1f191db5cc78db5bf (diff)
downloadPeerTube-afe817679974cec47f5bea1699cee3fe58cd5ada.tar.gz
PeerTube-afe817679974cec47f5bea1699cee3fe58cd5ada.tar.zst
PeerTube-afe817679974cec47f5bea1699cee3fe58cd5ada.zip
Some markdown fixes
Diffstat (limited to 'support/doc/production.md')
-rw-r--r--support/doc/production.md26
1 files changed, 13 insertions, 13 deletions
diff --git a/support/doc/production.md b/support/doc/production.md
index 4d7c14f2b..118704da3 100644
--- a/support/doc/production.md
+++ b/support/doc/production.md
@@ -10,7 +10,7 @@ Follow the steps of the [dependencies guide](dependencies.md).
10 10
11Create a `peertube` user with `/home/peertube` home: 11Create a `peertube` user with `/home/peertube` home:
12 12
13```bash 13```
14sudo useradd -m -d /home/peertube -s /bin/bash -p peertube peertube 14sudo useradd -m -d /home/peertube -s /bin/bash -p peertube peertube
15sudo passwd peertube 15sudo passwd peertube
16``` 16```
@@ -19,7 +19,7 @@ sudo passwd peertube
19 19
20Create production database and peertube user: 20Create production database and peertube user:
21 21
22```bash 22```
23sudo -u postgres createuser -P peertube 23sudo -u postgres createuser -P peertube
24sudo -u postgres createdb -O peertube peertube_prod 24sudo -u postgres createdb -O peertube peertube_prod
25``` 25```
@@ -28,7 +28,7 @@ sudo -u postgres createdb -O peertube peertube_prod
28 28
29Clone, install node dependencies and build application: 29Clone, install node dependencies and build application:
30 30
31```bash 31```
32$ cd /home/peertube 32$ cd /home/peertube
33$ sudo -u peertube git clone -b master https://github.com/Chocobozzz/PeerTube 33$ sudo -u peertube git clone -b master https://github.com/Chocobozzz/PeerTube
34$ cd PeerTube 34$ cd PeerTube
@@ -40,7 +40,7 @@ $ sudo -u peertube npm run build
40 40
41Copy example configuration: 41Copy example configuration:
42 42
43```bash 43```
44$ sudo -u peertube cp config/production.yaml.example config/production.yaml 44$ sudo -u peertube cp config/production.yaml.example config/production.yaml
45``` 45```
46 46
@@ -52,14 +52,14 @@ configuration. Keys set in this file will override those of
52 52
53Copy the nginx configuration template: 53Copy the nginx configuration template:
54 54
55```bash 55```
56$ sudo cp /home/peertube/PeerTube/support/nginx/peertube-https /etc/nginx/sites-available/peertube 56$ sudo cp /home/peertube/PeerTube/support/nginx/peertube-https /etc/nginx/sites-available/peertube
57``` 57```
58 58
59Then modify the webserver configuration file. Please pay attention to the `alias` key of `/static/webseed` location. 59Then modify the webserver configuration file. Please pay attention to the `alias` key of `/static/webseed` location.
60It should correspond to the path of your videos directory (set in the configuration file as `storage->videos` key). 60It should correspond to the path of your videos directory (set in the configuration file as `storage->videos` key).
61 61
62```bash 62```
63$ sudo vim /etc/nginx/sites-available/peertube 63$ sudo vim /etc/nginx/sites-available/peertube
64``` 64```
65 65
@@ -150,7 +150,7 @@ server {
150 150
151Activate the configuration file: 151Activate the configuration file:
152 152
153```bash 153```
154$ sudo ln -s /etc/nginx/sites-available/peertube /etc/nginx/sites-enabled/peertube 154$ sudo ln -s /etc/nginx/sites-available/peertube /etc/nginx/sites-enabled/peertube
155$ sudo systemctl reload nginx 155$ sudo systemctl reload nginx
156``` 156```
@@ -159,13 +159,13 @@ $ sudo systemctl reload nginx
159 159
160Copy the nginx configuration template: 160Copy the nginx configuration template:
161 161
162```bash 162```
163sudo cp /home/peertube/PeerTube/support/systemd/peertube.service /etc/systemd/system/ 163sudo cp /home/peertube/PeerTube/support/systemd/peertube.service /etc/systemd/system/
164``` 164```
165 165
166Update the service file: 166Update the service file:
167 167
168```bash 168```
169sudo vim /etc/systemd/system/peertube.service 169sudo vim /etc/systemd/system/peertube.service
170``` 170```
171 171
@@ -195,13 +195,13 @@ WantedBy=multi-user.target
195 195
196Tell systemd to reload its config: 196Tell systemd to reload its config:
197 197
198```bash 198```
199sudo systemctl daemon-reload 199sudo systemctl daemon-reload
200``` 200```
201 201
202### Run 202### Run
203 203
204```bash 204```
205sudo systemctl start peertube 205sudo systemctl start peertube
206sudo journalctl -feu peertube 206sudo journalctl -feu peertube
207``` 207```
@@ -211,7 +211,7 @@ sudo journalctl -feu peertube
211The administrator password is automatically generated and can be found in the 211The administrator password is automatically generated and can be found in the
212logs. You can set another password with: 212logs. You can set another password with:
213 213
214```bash 214```
215$ NODE_ENV=production npm run reset-password -- -u root 215$ NODE_ENV=production npm run reset-password -- -u root
216``` 216```
217 217
@@ -220,7 +220,7 @@ $ NODE_ENV=production npm run reset-password -- -u root
220The following commands will upgrade the source (according to your current 220The following commands will upgrade the source (according to your current
221branch), upgrade node modules and rebuild client application: 221branch), upgrade node modules and rebuild client application:
222 222
223```bash 223```
224# systemctl stop peertube 224# systemctl stop peertube
225$ npm run upgrade-peertube 225$ npm run upgrade-peertube
226# systemctl start peertube 226# systemctl start peertube