mirror of
https://github.com/Crocmagnon/lyon-transports.git
synced 2024-12-21 11:31:51 +01:00
add deploy scripts
This commit is contained in:
parent
a29feca6ff
commit
aa7fbeee5b
2 changed files with 18 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1 +1,2 @@
|
|||
.idea
|
||||
out
|
||||
|
|
17
Makefile
Normal file
17
Makefile
Normal file
|
@ -0,0 +1,17 @@
|
|||
.PHONY: build build-linux deploy clean
|
||||
|
||||
build: out
|
||||
GOOS=darwin GOARCH=arm64 go build -o ./out/lyon-transports-darwin-arm64 ./
|
||||
|
||||
build-linux: out
|
||||
GOOS=linux GOARCH=amd64 go build -o ./out/lyon-transports-linux-amd64 ./
|
||||
|
||||
deploy: build-linux
|
||||
scp ./out/lyon-transports-linux-amd64 ubuntu:/mnt/data/lyon-transports/
|
||||
ssh ubuntu-no-tmux "sudo systemctl restart lyon-transports.service"
|
||||
|
||||
out:
|
||||
mkdir -p out
|
||||
|
||||
clean:
|
||||
rm -rf out
|
Loading…
Reference in a new issue