Allow to sync static assets on rebuild
This commit is contained in:
		
					parent
					
						
							
								20e883cddf
							
						
					
				
			
			
				commit
				
					
						57eb9fce34
					
				
			
		
					 1 changed files with 3 additions and 1 deletions
				
			
		| 
						 | 
					@ -1,7 +1,6 @@
 | 
				
			||||||
#!/bin/bash
 | 
					#!/bin/bash
 | 
				
			||||||
 | 
					
 | 
				
			||||||
set -o nounset
 | 
					set -o nounset
 | 
				
			||||||
set -o pipefail
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
cloned_dir="$1"
 | 
					cloned_dir="$1"
 | 
				
			||||||
destination_dir="$2"
 | 
					destination_dir="$2"
 | 
				
			||||||
| 
						 | 
					@ -12,3 +11,6 @@ function finish {
 | 
				
			||||||
trap finish EXIT
 | 
					trap finish EXIT
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/usr/local/bin/jekyll build --source "$cloned_dir" --destination "$destination_dir"  2>&1 |& systemd-cat -t "jekyll-cloner" -p "info"
 | 
					/usr/local/bin/jekyll build --source "$cloned_dir" --destination "$destination_dir"  2>&1 |& systemd-cat -t "jekyll-cloner" -p "info"
 | 
				
			||||||
 | 
					# Sync everything but not timestamp
 | 
				
			||||||
 | 
					rsync -rlpgoD /srv/releases/ "$destination_dir/releases/"
 | 
				
			||||||
 | 
					rsync -rlpgoD /srv/dennogumi-assets/ "$destination_dir/"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue