From fa3146c8003fba9f5033362590b7110189993656 Mon Sep 17 00:00:00 2001 From: Andrey Petrov Date: Tue, 13 Apr 2021 11:32:24 -0400 Subject: [PATCH] Makefile: Add deploy helper --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Makefile b/Makefile index 10d208e..ccaa784 100644 --- a/Makefile +++ b/Makefile @@ -38,3 +38,8 @@ release: CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 LDFLAGS='$(LDFLAGS)' ./build_release "github.com/shazow/ssh-chat/cmd/ssh-chat" README.md LICENSE CGO_ENABLED=0 GOOS=freebsd GOARCH=amd64 LDFLAGS='$(LDFLAGS)' ./build_release "github.com/shazow/ssh-chat/cmd/ssh-chat" README.md LICENSE CGO_ENABLED=0 GOOS=windows GOARCH=386 LDFLAGS='$(LDFLAGS)' ./build_release "github.com/shazow/ssh-chat/cmd/ssh-chat" README.md LICENSE + +deploy: build/ssh-chat-linux_amd64.tgz + ssh -p 2022 ssh.chat tar xvz < build/ssh-chat-linux_amd64.tgz + @echo " --- Ready to deploy ---" + @echo "Run: ssh -p 2022 ssh.chat sudo systemctl restart ssh-chat"