aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2026-01-26 02:21:21 +0700
committerShulhan <ms@kilabit.info>2026-01-26 02:21:21 +0700
commit3ccf851798e6d79bd5cfe307989a58b2e037c6e2 (patch)
treee1b6bd00fc08832068ee69b85394fb249743355c
parent9ba27374eea99b31d6d5b47c6358133c781e0a89 (diff)
downloadrescached-3ccf851798e6d79bd5cfe307989a58b2e037c6e2.tar.xz
make: add task to deploy to local machine using rsync
-rw-r--r--Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 3cdfa24..5531bd9 100644
--- a/Makefile
+++ b/Makefile
@@ -203,6 +203,13 @@ uninstall-macos: uninstall-common
rm -f /Library/LaunchDaemons/info.kilabit.rescached.plist
+##---- Deploy to local machine.
+
+.PHONY: deploy.local
+deploy.local: build
+ sudo rsync _bin/linux_amd64/rescached /usr/bin/rescached
+ sudo systemctl restart rescached.service
+
##---- Tasks for deploying to public DNS server.
.PHONY: deploy-personal-server