Update production guide for freebsd users

This commit is contained in:
Chocobozzz
2026-03-11 15:10:39 +01:00
parent 0d4d8bb984
commit 6aad0c1e67
2 changed files with 25 additions and 2 deletions
+2
View File
@@ -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
+23 -2
View File
@@ -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>