Makefile: restart application after deploy

This commit is contained in:
Jörg Thalheim 2013-10-04 15:15:52 +02:00
parent f4eebef8a9
commit a5990ff1f3

View File

@ -2,9 +2,9 @@ vpn-status: server.go
go build
deploy: vpn-status
strip vpn-status
rsync -avcz -e ssh nodes.json html assets vpn-status higgsboson.tk:/home/joerg/vpn-status
rsync -avcz -e ssh nodes.json html assets vpn-status deploy@higgsboson.tk:/srv/http/vpn-status
ssh -t -t -t higgsboson.tk "sudo systemctl restart vpn-status"
.PHONY: clean
clean:
rm -rf vpn-status $(OBJ)