2019-01-24 13:07:19 -05:00
|
|
|
## Invidious releases are based on tags. You can use them if you want to be sure your instance is stable.
|
|
|
|
|
|
|
|
#### With release tags
|
|
|
|
```bash
|
|
|
|
$ sudo -i -u invidious
|
|
|
|
$ cd invidious
|
2019-02-09 13:14:03 -05:00
|
|
|
$ currentVersion=$(git rev-list --max-count=1 --abbrev-commit HEAD)
|
2019-01-24 13:07:19 -05:00
|
|
|
$ git pull
|
|
|
|
$ latestVersion=$(git describe --tags `git rev-list --tags --max-count=1`)
|
|
|
|
$ git checkout $latestVersion
|
2019-02-09 13:14:03 -05:00
|
|
|
$ for i in `git rev-list --abbrev-commit $currentVersion..HEAD` ; do file=./config/migrate-scripts/migrate-db-$i.sh ; [ -f $file ] && $file ; done
|
2019-01-24 13:07:19 -05:00
|
|
|
$ shards
|
|
|
|
$ crystal build src/invidious.cr --release
|
|
|
|
$ exit
|
|
|
|
$ sudo systemctl restart invidious.service
|
|
|
|
```
|
|
|
|
|
|
|
|
#### With master branch
|
|
|
|
```bash
|
|
|
|
$ sudo -i -u invidious
|
|
|
|
$ cd invidious
|
2019-02-09 13:14:03 -05:00
|
|
|
$ currentVersion=$(git rev-list --max-count=1 --abbrev-commit HEAD)
|
2019-01-24 13:07:19 -05:00
|
|
|
$ git pull
|
2019-02-09 13:14:03 -05:00
|
|
|
$ for i in `git rev-list --abbrev-commit $currentVersion..HEAD` ; do file=./config/migrate-scripts/migrate-db-$i.sh ; [ -f $file ] && $file ; done
|
2019-01-24 13:07:19 -05:00
|
|
|
$ shards
|
|
|
|
$ crystal build src/invidious.cr --release
|
|
|
|
$ exit
|
|
|
|
$ sudo systemctl restart invidious.service
|
|
|
|
```
|