12 lines
		
	
	
		
			365 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			365 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
#!/usr/bin/env bash
 | 
						|
 | 
						|
# To auto-deploy this on git push, add a symlink at .git/hooks/pre-push that points to this script
 | 
						|
#  Example: ln -s ../../deploy .git/hooks/pre-push
 | 
						|
 | 
						|
# Pull variables in from deploy_id
 | 
						|
#source "$SCRIPT_DIR/deploy_id"
 | 
						|
source "./deploy_id"
 | 
						|
 | 
						|
# Generate and push the output to the server
 | 
						|
hugo && rsync -avz --delete public/ ${USER}@${HOST}:${DIR}
 |