From 10d45b0c76dd0dcf513fab60cef84d7947fd5bd4 Mon Sep 17 00:00:00 2001 From: Daniel Heath Date: Thu, 18 Jan 2018 17:39:11 +1100 Subject: [PATCH] Add my deploy instructions --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index ba51d5f..5603a85 100644 --- a/Makefile +++ b/Makefile @@ -27,7 +27,10 @@ linux32: .PHONY: linux64 linux64: env GOOS=linux GOARCH=amd64 go build ${LDFLAGS} -o dist/cowyo_linux_amd64 - #cd dist && upx --brute cowyo_linux_amd64 + ssh camlistore "sudo initctl stop cowyo" + scp dist/cowyo_linux_amd64 camlistore:cowyo/cowyo + ssh camlistore "chmod +x cowyo/cowyo" + ssh camlistore "sudo initctl start cowyo" .PHONY: windows windows: