~seirdy/seirdy.one

970fa0e0571502c9f61fb28609f450598d72b578 — rohan kumar 10 months ago 3474c2d
CI: Only gzip when deploying to seirdy.one

Only seirdy.one uses gzip_static
1 files changed, 13 insertions(+), 5 deletions(-)

M deploy.sh
M deploy.sh => deploy.sh +13 -5
@@ 22,9 22,17 @@ case "$1" in
		;;
esac

find public -type f -name '*.html' -o -name '*.css' -o -name '*.xml' -o -name '*.txt' \
	| grep -v gemini \
	| xargs zopfli
rsync -avzP --exclude 'gemini' --exclude '*.gmi' --exclude 'misc/' --exclude 'music.txt' --exclude '.well-known' public/ "$www_prefix/" --delete
rsync -avzP --exclude '*.html' --exclude 'misc/' --exclude 'music.txt' public/gemini/ public/about public/posts "$gemini_prefix/" --delete
# I use gzip_static with nginx
if [ "$1" = 'seirdy.one' ]; then
	find public -type f -name '*.html' -o -name '*.css' -o -name '*.xml' -o -name '*.txt' \
		| grep -v gemini \
		| xargs zopfli
fi

rsync -avzP \
	--exclude 'gemini' --exclude '*.gmi' --exclude 'misc/' --exclude 'music.txt' --exclude '.well-known' \
	public/ "$www_prefix/" --delete
rsync -avzP \
	--exclude '*.html' --exclude 'misc/' --exclude 'music.txt' \
	public/gemini/ public/about public/posts "$gemini_prefix/" --delete
rsync -avzP public/posts/gemini.xml "$gemini_prefix/feed.xml"