mirror of
https://gitea.invidious.io/iv-org/documentation
synced 2025-04-05 09:41:13 +02:00
Updated Updating (markdown)
This commit is contained in:
parent
23964b9485
commit
8136d50f13
@ -4,9 +4,11 @@
|
|||||||
```bash
|
```bash
|
||||||
$ sudo -i -u invidious
|
$ sudo -i -u invidious
|
||||||
$ cd invidious
|
$ cd invidious
|
||||||
|
$ currentVersion=$(git rev-list --max-count=1 --abbrev-commit HEAD)
|
||||||
$ git pull
|
$ git pull
|
||||||
$ latestVersion=$(git describe --tags `git rev-list --tags --max-count=1`)
|
$ latestVersion=$(git describe --tags `git rev-list --tags --max-count=1`)
|
||||||
$ git checkout $latestVersion
|
$ git checkout $latestVersion
|
||||||
|
$ for i in `git rev-list --abbrev-commit $currentVersion..HEAD` ; do file=./config/migrate-scripts/migrate-db-$i.sh ; [ -f $file ] && $file ; done
|
||||||
$ shards
|
$ shards
|
||||||
$ crystal build src/invidious.cr --release
|
$ crystal build src/invidious.cr --release
|
||||||
$ exit
|
$ exit
|
||||||
@ -17,7 +19,9 @@ $ sudo systemctl restart invidious.service
|
|||||||
```bash
|
```bash
|
||||||
$ sudo -i -u invidious
|
$ sudo -i -u invidious
|
||||||
$ cd invidious
|
$ cd invidious
|
||||||
|
$ currentVersion=$(git rev-list --max-count=1 --abbrev-commit HEAD)
|
||||||
$ git pull
|
$ git pull
|
||||||
|
$ for i in `git rev-list --abbrev-commit $currentVersion..HEAD` ; do file=./config/migrate-scripts/migrate-db-$i.sh ; [ -f $file ] && $file ; done
|
||||||
$ shards
|
$ shards
|
||||||
$ crystal build src/invidious.cr --release
|
$ crystal build src/invidious.cr --release
|
||||||
$ exit
|
$ exit
|
||||||
|
Loading…
x
Reference in New Issue
Block a user