mirror of
				https://github.com/iv-org/documentation.git
				synced 2025-10-30 22:19:03 -04:00 
			
		
		
		
	
		
			
				
	
	
		
			29 lines
		
	
	
		
			No EOL
		
	
	
		
			1,015 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
		
			No EOL
		
	
	
		
			1,015 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
| ## 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
 | |
| $ currentVersion=$(git rev-list --max-count=1 --abbrev-commit HEAD)
 | |
| $ git pull
 | |
| $ latestVersion=$(git describe --tags `git rev-list --tags --max-count=1`)
 | |
| $ 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
 | |
| $ crystal build src/invidious.cr --release
 | |
| $ exit
 | |
| $ sudo systemctl restart invidious.service
 | |
| ```
 | |
| 
 | |
| #### With master branch
 | |
| ```bash
 | |
| $ sudo -i -u invidious
 | |
| $ cd invidious
 | |
| $ currentVersion=$(git rev-list --max-count=1 --abbrev-commit HEAD)
 | |
| $ 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
 | |
| $ crystal build src/invidious.cr --release
 | |
| $ exit
 | |
| $ sudo systemctl restart invidious.service
 | |
| ``` | 
