Add upgrade instructions

This commit is contained in:
Chocobozzz 2024-01-15 09:23:32 +01:00
parent aaad2ea75d
commit a04dea2dd1
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 13 additions and 1 deletions

View File

@ -31,8 +31,10 @@ Add the locale in `client/src/main.ts` and `client/gettext.config.js` and run `n
## Production
### Installation
Install dependencies:
* NodeJS (v16)
* NodeJS (v18)
* MeiliSearch
```terminal
@ -44,3 +46,13 @@ $ cp config/default.yaml config/production.yaml
$ vim config/production.yaml
$ NODE_ENV=production NODE_CONFIG_DIR=/var/www/peertube-search-index/config node dist/server.js
```
### Upgrade
```
cd /var/www/peertube-search-index && \
git pull origin master && \
yarn install --pure-lockfile && \
npm run build && \
sudo systemctl restart peertube-search-index.service
```