diff --git a/deploy.sh b/deploy.sh index 1fcf968..39c34ec 100644 --- a/deploy.sh +++ b/deploy.sh @@ -7,14 +7,14 @@ function main() { if [ -z "$NOTEST" ]; then go test ./... fi - GOARCH=arm GOARM=5 gobuild $exec + GOOS=linux GOARCH=arm GOARM=5 gobuild $exec for authed in dndex dndex-auth; do scp ./public/swagger/* zach@tickle.lan:./$authed/files/swagger/ scp $exec zach@tickle.lan:./$authed/dndex.new ssh zach@tickle.lan bash -c "true; while [ -e ./$authed/dndex.new ]; do printf '.'; sleep 3; done; echo" done & wait - gobuild $exec + GOOS=linux gobuild $exec scp $exec bel@remote.blapointe.com:/home/bel/services/bin/dndex.new ssh bel@remote.blapointe.com bash -c 'true; md5sum ./services/bin/dndex*; while [ -e ./services/bin/dndex.new ]; do printf "."; sleep 3; done; md5sum ./services/bin/dndex*' rm $exec @@ -24,7 +24,7 @@ function main() { } function gobuild() { - GOOS=linux CGO_ENABLED=0 go build \ + CGO_ENABLED=0 go build \ -o $1 \ -a \ -installsuffix cgo \