From 1f8888ed4123c51f76d62bbd0412a0d8143ca092 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Mon, 3 Apr 2023 07:46:58 -0300 Subject: dynamic.mk: Use "deployer" user in s/deploy/upload/ target --- dynamic.mk | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'dynamic.mk') diff --git a/dynamic.mk b/dynamic.mk index 8b7bc14..585c15d 100644 --- a/dynamic.mk +++ b/dynamic.mk @@ -101,5 +101,10 @@ run: all open 'http://localhost:$(PORT)' serve -d public/ -p $(PORT) -deploy: all - rsync -avzP public/ $(FQDN):/srv/www --delete +upload: all + rsync \ + --rsync-path='sudo -u deployer rsync' \ + -avzP \ + --delete \ + --exclude 's/*' \ + public/ $(FQDN):/srv/www/ -- cgit v1.2.3