2019-06-30 14:59:00 +00:00
|
|
|
SET CGO_ENABLED=0
|
|
|
|
SET GOOS=linux
|
|
|
|
SET GOARCH=amd64
|
|
|
|
go build ./
|
|
|
|
|
2019-09-03 08:38:35 +00:00
|
|
|
|
|
|
|
ssh -t -i ./id_rsa ubuntu@118.24.238.198 'rm /home/ubuntu/api/bin/userapi'
|
|
|
|
|
2019-06-30 14:59:00 +00:00
|
|
|
scp -i ./id_rsa background ubuntu@118.24.238.198:/home/ubuntu/api/bin/userapi
|
|
|
|
scp -i ./id_rsa user.yaml ubuntu@118.24.238.198:/home/ubuntu/api/bin/user.yaml
|
|
|
|
|
|
|
|
scp -i ./id_rsa pem/ca.pem ubuntu@118.24.238.198:/home/ubuntu/api/bin/pem/ca.pem
|
|
|
|
scp -i ./id_rsa pem/client-cert.pem ubuntu@118.24.238.198:/home/ubuntu/api/bin/pem/client-cert.pem
|
|
|
|
scp -i ./id_rsa pem/client-key.pem ubuntu@118.24.238.198:/home/ubuntu/api/bin/pem/client-key.pem
|