summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorShulhan <m.shulhan@gmail.com>2021-10-10 01:17:57 +0700
committerShulhan <m.shulhan@gmail.com>2021-10-10 01:18:34 +0700
commita125f8f570e6b90b62aed15f445d270b0ca383f7 (patch)
treebc7aff07de199cb421beefbddee9795760ea6ced /Makefile
parent68250c55bf32aad8b89577bad5f37305a01918a4 (diff)
downloadgolang-id-web-a125f8f570e6b90b62aed15f445d270b0ca383f7.tar.xz
Makefile: tambahan task untuk penerbitan ke VM
Perintah `make deploy-vm` akan membuat dan menyalin program yang baru pada VM di lokal untuk pengujian sebelum di deploy ke peladen publik.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 56af142..6583b08 100644
--- a/Makefile
+++ b/Makefile
@@ -46,3 +46,6 @@ install-local-macos:
deploy-local: build
sudo cp -f ./$(PROGRAM_NAME) /usr/local/bin/
+
+deploy-vm: build
+ rsync ./$(PROGRAM_NAME) golang-id.local:~/bin/