20251212181832 push

This commit is contained in:
2025-12-12 18:18:32 -08:00
parent 7838ccc1d4
commit be48f71281
99 changed files with 101 additions and 316996 deletions

View File

@@ -19,10 +19,10 @@ build-blog:
bash -c './bin/blog.sh build'
build-photos:
cd ./photos/; bash -c '../bin/gallery.sh -t "Photos" -d "__thumbs"'
cd ./photos/; bash -c '../bin/gallery.sh -t "Photos" -d "_thumbs"'
serve: build
bash -c './bin/serve.sh -d ./_output/'
serve:
test -d _output && bash -c './bin/serve.sh -d ./_output/' || exit 1
push: push-blog push-photos push-assets
git add .; git commit -m "$(date +%Y%m%d%H%M%S) push"; git push
@@ -31,20 +31,17 @@ push-blog:
find ./_output/ -type d -print0 | xargs -0 -I {} chmod 775 "{}"
find ./_output/ -type f -print0 | xargs -0 -I {} chmod 664 "{}"
rsync -avz ./_output/ iiogama-web:/var/www/htdocs/
#scp -r ./_output/* iiogama:/var/www/htdocs/
push-photos:
find ./photos/ -type d -print0 | xargs -0 -I {} chmod 775 "{}"
find ./photos/ -type f -print0 | xargs -0 -I {} chmod 664 "{}"
rsync -avz ./photos/ iiogama-web:/var/www/htdocs/photos/
#scp -r ./photos iiogama:/var/www/htdocs/
push-assets:
find ./assets/ -type d -print0 | xargs -0 -I {} chmod 775 "{}"
find ./assets/ -type f -print0 | xargs -0 -I {} chmod 664 "{}"
rsync -avz ./assets/ iiogama-web:/var/www/htdocs/
#scp -r ./assets iiogama:/var/www/htdocs/
clean:
test -d _output/ && rm -rf _output/ || exit 0
test -d photos/__thumbs/ && rm -rf photos/__thumbs/ || exit 0
test -d photos/_thumbs/ && rm -rf photos/_thumbs/ || exit 0