added draft deploy, for getting feedback.
This commit is contained in:
		
							parent
							
								
									87eec1d61b
								
							
						
					
					
						commit
						018c27f6e3
					
				
					 2 changed files with 6 additions and 1 deletions
				
			
		
							
								
								
									
										5
									
								
								justfile
									
										
									
									
									
								
							
							
						
						
									
										5
									
								
								justfile
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -4,7 +4,12 @@ preview:
 | 
			
		|||
USER:='root'
 | 
			
		||||
HOST:='gabevenberg.com'
 | 
			
		||||
DIR:='/var/www/gabevenberg.com'
 | 
			
		||||
DRAFTDIR:='/var/www/draft.gabevenberg.com'
 | 
			
		||||
 | 
			
		||||
deploy:
 | 
			
		||||
    hugo --minify
 | 
			
		||||
    rsync -rvz --delete public/ {{USER}}@{{HOST}}:{{DIR}} # this will delete everything on the server that's not in the local public folder
 | 
			
		||||
 | 
			
		||||
deploy-preview:
 | 
			
		||||
    hugo --minify --buildDrafts --buildFuture
 | 
			
		||||
    rsync -rvz --delete public/ {{USER}}@{{HOST}}:{{DRAFTDIR}} # this will delete everything on the server that's not in the local public folder
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue