made draft deployment.
This commit is contained in:
		
							parent
							
								
									018c27f6e3
								
							
						
					
					
						commit
						349007be95
					
				
					 1 changed files with 7 additions and 4 deletions
				
			
		
							
								
								
									
										11
									
								
								justfile
									
										
									
									
									
								
							
							
						
						
									
										11
									
								
								justfile
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -2,14 +2,17 @@ preview:
 | 
			
		|||
    hugo serve --buildDrafts --buildExpired --buildFuture --navigateToChanged
 | 
			
		||||
 | 
			
		||||
USER:='root'
 | 
			
		||||
HOST:='gabevenberg.com'
 | 
			
		||||
HOST:='cirrostratus'
 | 
			
		||||
DIR:='/var/www/gabevenberg.com'
 | 
			
		||||
DRAFTDIR:='/var/www/draft.gabevenberg.com'
 | 
			
		||||
 | 
			
		||||
deploy:
 | 
			
		||||
deploy: clean
 | 
			
		||||
    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
 | 
			
		||||
deploy-preview: clean
 | 
			
		||||
    hugo --minify --buildDrafts --buildFuture --baseURL 'https://draft.gabevenberg.com/'
 | 
			
		||||
    rsync -rvz --delete public/ {{USER}}@{{HOST}}:{{DRAFTDIR}} # this will delete everything on the server that's not in the local public folder
 | 
			
		||||
 | 
			
		||||
clean:
 | 
			
		||||
    -rm -r ./public/
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue