From f3e02f5d00ebad3ef96b51252f9ce80b8d741099 Mon Sep 17 00:00:00 2001 From: Dmitry Ilvokhin Date: Sun, 8 Jan 2023 18:57:08 +0000 Subject: Fix deploy Makefile target I use old rsync without fancy ownership flags, so let's use good old ssh and chwon to make things right. Also, remove file at destination, in case I want to "unpublish" something. --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 3712018..990da33 100644 --- a/Makefile +++ b/Makefile @@ -12,7 +12,8 @@ server: remote python3 -m http.server --directory remote deploy: remote - rsync -avzP remote/ sun.ilvokhin.com:/var/www/blog.ilvokhin.com/ + rsync -avzP --delete remote/ sun:/var/www/blog.ilvokhin.com/ + ssh sun -- chown -R d:http /var/www/blog.ilvokhin.com/ clean: rm -rf remote -- cgit v1.2.3-70-g09d2