1 Star 0 Fork 0

tronprotocol/tron-deployment

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
deploy_grpc_gateway.sh 802 Bytes
Copy Edit Raw Blame History
taihaofu authored 2018-06-28 15:09 . add grpc gateway deploy scripts
# Prerequests:
# 1. Install go
# 2. Install protoc
# 3. set $GOPATH
# Then run this scripts
#!/bin/bash
port=50051
host=localhost
listen=18890
go get -u github.com/tronprotocol/grpc-gateway
echo "Download github.com/tronprotocol/grpc-gateway successfully"
cd $GOPATH/src/github.com/tronprotocol/grpc-gateway
while [ -n "$1" ] ;do
case "$1" in
--rpcport)
port=$2
shift 2
;;
--rpchost)
host=$2
shift 2
;;
--httpport)
listen=$2
shift 2
;;
*)
;;
esac
done
nohup go run tron_http/main.go -port $port -host $host -listen $listen >> start_grpc_gateway.log 2>&1 &
echo "==Activate gateway=="
echo "grpc server : $host:$port"
echo "http port: $listen"
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/tronprotocol/tron-deployment.git
git@gitee.com:tronprotocol/tron-deployment.git
tronprotocol
tron-deployment
tron-deployment
master

Search