Add upgrade instructions
This commit is contained in:
parent
aaad2ea75d
commit
a04dea2dd1
14
README.md
14
README.md
|
@ -31,8 +31,10 @@ Add the locale in `client/src/main.ts` and `client/gettext.config.js` and run `n
|
||||||
|
|
||||||
## Production
|
## Production
|
||||||
|
|
||||||
|
### Installation
|
||||||
|
|
||||||
Install dependencies:
|
Install dependencies:
|
||||||
* NodeJS (v16)
|
* NodeJS (v18)
|
||||||
* MeiliSearch
|
* MeiliSearch
|
||||||
|
|
||||||
```terminal
|
```terminal
|
||||||
|
@ -44,3 +46,13 @@ $ cp config/default.yaml config/production.yaml
|
||||||
$ vim config/production.yaml
|
$ vim config/production.yaml
|
||||||
$ NODE_ENV=production NODE_CONFIG_DIR=/var/www/peertube-search-index/config node dist/server.js
|
$ 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
|
||||||
|
```
|
||||||
|
|
Loading…
Reference in New Issue