summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorShulhan <m.shulhan@gmail.com>2022-09-13 21:28:26 +0700
committerShulhan <m.shulhan@gmail.com>2022-09-13 21:28:26 +0700
commit3c3dae900725d221dec87ef531a9b06a89b05a47 (patch)
tree5b4b6dd55a7485a213f3d0c2c9877104ef5d07a0 /Makefile
parent292995649138a07d2d84b1270383b5c62c024a93 (diff)
downloadgolang-id-web-3c3dae900725d221dec87ef531a9b06a89b05a47.tar.xz
all: ganti mode pengembangan dengan opsi "-dev"
Dengan menjalan program dengan opsi -dev, berarti program akan memantau setiap berkas .adoc, otomatis mengonversinya ke HTML, sambil tetap melayani HTTP.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index b60a55d..2094eea 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,6 @@
-.PHONY: clean all embed build build-deploy deploy
+.PHONY: all clean embed build install dev deploy
+.PHONY: install-local install-local-macos
+.PHONY: deploy-local deploy-vm
MACOS_SERVICE=local.golangid
PROGRAM_NAME=www-golangid
@@ -19,8 +21,8 @@ build: embed
install: embed
go install ./cmd/$(PROGRAM_NAME)
-serve:
- DEBUG=1 go run ./cmd/$(PROGRAM_NAME)
+dev:
+ go run ./cmd/$(PROGRAM_NAME) -dev
deploy: build-deploy
rsync --progress ./$(PROGRAM_NAME) www-golangid:/data/app/bin/