update ssh config in makefile

This commit is contained in:
Gabriel Augendre 2024-11-20 03:19:51 +01:00
parent a8d7cf35c5
commit 9192140405

View file

@ -7,9 +7,9 @@ build-linux: out
GOOS=linux GOARCH=amd64 go build -o ./out/lyon-transports-linux-amd64 ./
deploy: build-linux
ssh ubuntu-no-tmux "sudo systemctl stop lyon-transports.service"
scp ./out/lyon-transports-linux-amd64 ubuntu-no-tmux:/mnt/data/lyon-transports/
ssh ubuntu-no-tmux "sudo systemctl start lyon-transports.service"
ssh ubuntu "sudo systemctl stop lyon-transports.service"
scp ./out/lyon-transports-linux-amd64 ubuntu:/mnt/data/lyon-transports/
ssh ubuntu "sudo systemctl start lyon-transports.service"
out:
mkdir -p out