Skip to content

Latest commit

 

History

History
44 lines (40 loc) · 1.3 KB

Updating.md

File metadata and controls

44 lines (40 loc) · 1.3 KB
title description published date tags editor dateCreated
Updating
true
2021-05-23 16:59:22 UTC
markdown
2021-01-28 20:40:27 UTC

Invidious releases are based on tags. You can use them if you want to be sure your instance is stable.

With release tags

$ sudo -i -u invidious
$ cd invidious
$ currentVersion=$(git rev-list --max-count=1 --abbrev-commit HEAD)
$ git pull
$ latestVersion=$(git describe --tags --abbrev=0)
$ git checkout $latestVersion
$ for i in `git rev-list --reverse --abbrev-commit $currentVersion..HEAD` ; do file=./config/migrate-scripts/migrate-db-$i.sh ; [ -f $file ] && $file ; done
$ shards update && shards install
$ crystal build src/invidious.cr --release
$ exit
$ sudo systemctl restart invidious.service

With master branch

$ sudo -i -u invidious
$ cd invidious
$ currentVersion=$(git rev-list --max-count=1 --abbrev-commit HEAD)
$ git pull
$ for i in `git rev-list --reverse --abbrev-commit $currentVersion..HEAD` ; do file=./config/migrate-scripts/migrate-db-$i.sh ; [ -f $file ] && $file ; done
$ shards update && shards install
$ crystal build src/invidious.cr --release
$ exit
$ sudo systemctl restart invidious.service

With Docker:

$ docker-compose pull && docker-compose up --force-recreate --build && docker image prune -f