generate statically compressed files
This commit is contained in:
parent
5a76665519
commit
2cfc023f4a
2 changed files with 11 additions and 1 deletions
7
\
Normal file
7
\
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
rm -rf ./public
|
||||||
|
hugo --minify || exit $?
|
||||||
|
gzip -rk public || exit $?
|
||||||
|
fd . public -tf -E '*.gz' -x brotli -k {} || exit $?
|
||||||
|
rsync -rvz --delete ./public/ wires.systems:/var/www/html
|
|
@ -1,4 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
rm -rf ./public
|
rm -rf ./public
|
||||||
hugo && rsync -rvz --delete ./public/ wires.systems:/var/www/html
|
hugo --minify || exit $?
|
||||||
|
gzip --best -rk public || exit $?
|
||||||
|
fd . public -tf -E '*.gz' -x brotli -k {} || exit $?
|
||||||
|
rsync -rvz --delete ./public/ wires.systems:/var/www/html
|
||||||
|
|
Loading…
Add table
Reference in a new issue