blob: a333ac80863effcf2baa516b09167dcf4c4db0b7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
$(BINARY): $(wildcard *.go) go.mod
go build -o $@ -v
deploy: $(BINARY)
rsync --progress -i $^ "$(SERVER):/var/www/gosvc/"
ssh "$(SERVER)" 'systemctl enable gosvc@$^.socket && systemctl start gosvc@$^.socket && systemctl restart gosvc@$^.service'
clean:
rm -f $(BINARY)
.PHONY: deploy clean
|