1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/peertube_ynh.git synced 2024-09-03 19:56:29 +02:00
peertube_ynh/README.md

78 lines
1.7 KiB
Markdown
Raw Normal View History

2019-06-23 15:43:45 +02:00
# ovh_fix branch for peertube_ynh
2018-03-23 20:23:12 +01:00
2019-06-23 15:43:45 +02:00
If installing on an ovh virtual machine or having `gyp ERR! configure error` please follow the steps indicated in Chocobozzz/PeerTube#830 (comment)
2018-05-08 00:50:15 +02:00
2019-06-23 15:43:45 +02:00
## Steps for installing
2017-12-08 00:35:52 +01:00
2018-06-27 13:21:09 +02:00
2019-06-23 15:43:45 +02:00
1. Install nodejs
2018-06-27 13:21:09 +02:00
2019-06-23 15:43:45 +02:00
```
$ curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
$ sudo apt-get install -y nodejs
```
2019-06-06 21:03:08 +02:00
2019-06-23 15:46:50 +02:00
2. Install the peertube with **OVH fix** branch.
2019-06-23 15:43:45 +02:00
```
2019-06-23 15:52:32 +02:00
$ yunohost app install https://github.com/YunoHost-Apps/peertube_ynh/tree/ovh_fix --debug
2019-06-23 15:43:45 +02:00
```
2019-06-23 15:46:50 +02:00
3. After installation is complete run **yarn install**.
2019-06-23 15:43:45 +02:00
```
$ cd /var/www/peertube && yarn install --production --pure-lockfile
```
2019-06-23 15:46:50 +02:00
4. Give proper **permissions** to peertube
2019-04-03 00:42:22 +02:00
2019-06-23 15:43:45 +02:00
```
$ chown -R peertube:peertube /var/www/peertube
```
2019-04-03 00:42:22 +02:00
2019-06-23 15:46:50 +02:00
5. **Restart peertube** and check if there is any error message.
2019-04-03 00:42:22 +02:00
2019-06-23 15:43:45 +02:00
```
$ service peertube restart
$ journalctl -feu peertube
```
2019-04-03 00:42:22 +02:00
2019-06-23 15:46:50 +02:00
6. If there is no **error in red** in the last lines of log. Press **ctrl+c** to stop the logs.
2019-04-03 00:42:22 +02:00
2019-06-23 15:46:50 +02:00
7. Go to your **domain** to check if peertube is running and everthing is ok.
2019-04-03 00:42:22 +02:00
2019-06-23 15:46:50 +02:00
8. Change your **root password** by this command:
2019-04-03 00:42:22 +02:00
2019-06-23 15:43:45 +02:00
```
$ cd /var/www/peertube && NODE_CONFIG_DIR="/var/www/peertube/config/" NODE_ENV=production npm run reset-password -- -u root
```
2019-04-03 00:42:22 +02:00
2019-06-23 15:46:50 +02:00
Username: **root**
password: **created in above step**
2019-04-03 00:42:22 +02:00
2019-06-23 15:43:45 +02:00
## Steps for upgrading
2019-06-23 15:52:32 +02:00
1. Upgrade peertube with **OVH fix** branch.
```
$ yunohost app upgrade peertube -u https://github.com/YunoHost-Apps/peertube_ynh/tree/ovh_fix --debug
```
2019-06-23 15:53:45 +02:00
2. After upgrade is complete run **yarn install**.
2019-06-23 15:52:32 +02:00
```
$ cd /var/www/peertube && yarn install --production --pure-lockfile
```
3. Give proper **permissions** to peertube
```
$ chown -R peertube:peertube /var/www/peertube
```
4. **Restart peertube** and check if there is any error message.
```
$ service peertube restart
```