Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Update production guide for freebsd users

Chocobozzz6aad0c1e67db
diff --git a/support/doc/dependencies.md b/support/doc/dependencies.md
index 59124b31db..1fa82c03c4 100644
--- a/support/doc/dependencies.md
+++ b/support/doc/dependencies.md
@@ -441,6 +441,8 @@ On a fresh install of [FreeBSD](https://www.freebsd.org), new system or new jail
pkg install -y sudo bash wget git python nginx pkgconf postgresql13-server postgresql13-contrib redis openssl node npm yarn ffmpeg unzip
```
+1. install `sharp` build dependencies: https://sharp.pixelplumbing.com/install/#building-from-source
+
1. **PeerTube <= v7.3 only** Install Yarn:
```sh
pkg install -y yarn
diff --git a/support/doc/production.md b/support/doc/production.md
index b092d00456..03bf716916 100644
--- a/support/doc/production.md
+++ b/support/doc/production.md
@@ -87,12 +87,23 @@ sudo -u peertube unzip -q peertube-${VERSION}.zip && sudo -u peertube rm peertub
Install Peertube:
-```bash
+::: code-group
+
+```bash [GNU/Linux]
+cd /var/www/peertube
+sudo -u peertube ln -s versions/peertube-${VERSION} ./peertube-latest
+cd ./peertube-latest && sudo -H -u peertube npm run install-node-dependencies -- --production
+```
+
+```bash [FreeBSD]
cd /var/www/peertube
sudo -u peertube ln -s versions/peertube-${VERSION} ./peertube-latest
cd ./peertube-latest && sudo -H -u peertube npm run install-node-dependencies -- --production
+sudo -H -u peertube npm explore sharp -- npm run build
```
+:::
+
### :wrench: PeerTube configuration
Copy the default configuration file that contains the default configuration provided by PeerTube.
@@ -295,11 +306,21 @@ Now your instance is up you can:
Run the upgrade script (the password it asks is PeerTube's database user password):
-```bash
+::: code-group
+
+```bash [GNU/Linux]
cd /var/www/peertube/peertube-latest/scripts && sudo -H -u peertube ./upgrade.sh
sudo systemctl restart peertube # Or use your OS command to restart PeerTube if you don't use systemd
```
+```bash [FreeBSD]
+cd /var/www/peertube/peertube-latest/scripts && sudo -H -u peertube ./upgrade.sh
+cd /var/www/peertube/peertube-latest && sudo -H -u peertube npm explore sharp -- npm run build
+sudo systemctl restart peertube # Or use your OS command to restart PeerTube if you don't use systemd
+```
+
+:::
+
You may want to run `sudo -u peertube pnpm store prune` after several upgrades to free up disk space.
<details>