aboutsummaryrefslogtreecommitdiff
path: root/dynamic.mk
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2023-04-03 07:46:58 -0300
committerEuAndreh <eu@euandre.org>2023-04-03 07:46:58 -0300
commit1f8888ed4123c51f76d62bbd0412a0d8143ca092 (patch)
tree99fbeb7f981aa87ebe758fe35f19faf12b082c3d /dynamic.mk
parentReplace kuvira -> toph (diff)
downloadeuandre.org-1f8888ed4123c51f76d62bbd0412a0d8143ca092.tar.gz
euandre.org-1f8888ed4123c51f76d62bbd0412a0d8143ca092.tar.xz
dynamic.mk: Use "deployer" user in s/deploy/upload/ target
Diffstat (limited to '')
-rw-r--r--dynamic.mk9
1 files changed, 7 insertions, 2 deletions
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/