1 Star 0 Fork 34

lorock / distributed-gosuv

forked from haiker / sudis 
Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
Clone or Download
build_remote.sh 471 Bytes
Copy Edit Raw Blame History
haiker authored 2017-12-03 19:46 . 分布式实现
#!/bin/bash -
#
set -e
TARGET=build_tmp/src/github.com/codeskyblue/gosuv
HOST="pi3-0"
ssh pi@$HOST mkdir -p $TARGET
rsync -avz -e "ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null" --progress \
--exclude gosuv --exclude dist --exclude .git \
--delete \
. pi@$HOST:$TARGET
echo "Build remotely ..."
ssh pi@$HOST bash $TARGET/build_standalone.sh
echo "Build finished, copying ..."
scp pi@$HOST:$TARGET/gosuv ./dist/gosuv-linux-arm
echo "All finished"
Go
1
https://gitee.com/lorock/distributed-gosuv.git
git@gitee.com:lorock/distributed-gosuv.git
lorock
distributed-gosuv
distributed-gosuv
master

Search