Skip to content

Commit 38902be

Browse files
committed
adjust comand for hot reload
1 parent 24f771d commit 38902be

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Makefile

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
export PORT := 8081
22

3+
.PHONY: run
4+
run:
5+
@go run ./cmd/api
6+
7+
# To use this command, run `go install github.com/cespare/reflex@latest`
38
.PHONY: dev
49
dev:
5-
@go run ./cmd/api
10+
@reflex -r '\.go$$' -s make run
11+

0 commit comments

Comments
 (0)