Commit 9891497666
Verified · cmc
Layout: unified · split
.githooks/pre-push +3
| @@ -23,6 +23,9 @@ echo "pre-push: building site with zola..." | ||
| 23 | 23 | zola build |
| 24 | 24 | |
| 25 | 25 | echo "pre-push: deploying to ${remote_host}:${remote_path}..." |
| 26 | # Upload assets before HTML so a page never references a cachebust URL | |
| 27 | # whose file is still the old version; Cloudflare would cache it for a year. | |
| 28 | rsync -az --exclude '*.html' public/ "${remote_host}:${remote_path}/" | |
| 26 | 29 | rsync -az --delete public/ "${remote_host}:${remote_path}/" |
| 27 | 30 | |
| 28 | 31 | echo "pre-push: deploy complete." |