fix: simplify build script
well ... kind of Signed-off-by: Harald Hoyer <harald@hoyer.xyz>
This commit is contained in:
		
							parent
							
								
									ca9cae297c
								
							
						
					
					
						commit
						e02814ca6f
					
				
					 1 changed files with 1 additions and 4 deletions
				
			
		
							
								
								
									
										5
									
								
								build.sh
									
										
									
									
									
								
							
							
						
						
									
										5
									
								
								build.sh
									
										
									
									
									
								
							| 
						 | 
					@ -2,10 +2,7 @@
 | 
				
			||||||
set -ex
 | 
					set -ex
 | 
				
			||||||
 | 
					
 | 
				
			||||||
rm -fr public
 | 
					rm -fr public
 | 
				
			||||||
nix shell nixpkgs#zola -c zola build
 | 
					nix shell nixpkgs#zola nixpkgs#nodejs_20 -c sh -c 'zola build && npm install && npm run abridge'
 | 
				
			||||||
nix shell nixpkgs#nodejs_20 -c npm install
 | 
					 | 
				
			||||||
nix shell nixpkgs#nodejs_20 -c npm run abridge
 | 
					 | 
				
			||||||
nix shell nixpkgs#zola -c zola build
 | 
					 | 
				
			||||||
find public -type f -regextype posix-extended -regex '.*\.(htm|html|css|js|xml|xsl|txt|woff|woff2|svg|otf|eot|ttf)' -exec gzip --best -k -f {} \;
 | 
					find public -type f -regextype posix-extended -regex '.*\.(htm|html|css|js|xml|xsl|txt|woff|woff2|svg|otf|eot|ttf)' -exec gzip --best -k -f {} \;
 | 
				
			||||||
rsync -a --delete-after public/ /var/www/harald.hoyer.xyz/html/
 | 
					rsync -a --delete-after public/ /var/www/harald.hoyer.xyz/html/
 | 
				
			||||||
chmod go-w -R /var/www/harald.hoyer.xyz/
 | 
					chmod go-w -R /var/www/harald.hoyer.xyz/
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue