minecraft-site/Makefile

8 lines
316 B
Makefile

minecraft-site: minecraft-site.go index.html go.mod go.sum
go build -tags netgo -ldflags '-extldflags "-static"'
.PHONY: deploy
deploy: minecraft-site
rsync --rsync-path="sudo -u minecraft rsync" minecraft-site zirconium:/home/minecraft/minecraft-site
ssh zirconium sudo systemctl restart minecraft-site.service