]> git.eshelyaron.com Git - esy-publish.git/commitdiff
Improve publishing process
authorEshel Yaron <me@eshelyaron.com>
Wed, 12 Apr 2023 05:47:26 +0000 (08:47 +0300)
committerEshel Yaron <me@eshelyaron.com>
Wed, 12 Apr 2023 05:47:26 +0000 (08:47 +0300)
Makefile
publish.el

index 4634536a3df0f06af2a943f7bd5f472fed10efb4..8fb09ba493b9643d6b71ada0a0567dca01bbbf0e 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,10 @@
 .PHONY: local remote sweep dotfiles
 
+update:
+       emacs -Q --batch -l publish.el -f esy/publish-update
+
 remote: local
-       emacs -Q --batch -l publish.el -f esy/publish-to-remote
+       rsync -vrz html/ root@direct.eshelyaron.com:/var/www/html
 
 local: sweep dotfiles
        emacs -Q --batch -l publish.el -f esy/publish
index 45151beb3f394d9a219cb4821945ee4af50d65de..e194fce05c5596a4ea24c033396d53db69120c28 100644 (file)
                                   " %a"))))))))
     (org-publish "all" (not modified-only))))
 
+(defun esy/publish-update () (esy/publish t))
 
 (provide 'publish)
 ;;; publish.el ends here