问题描述
我在自己的GAE服务器上部署了apprtc的Google应用程序引擎代码。我没有找到关于如何为websocket信号部署基于Go的对撞机的说明。
以下是collider项目:
任何见解都将有所帮助。
Collider需要部署在Google Compute Engine或同等服务中由亚马逊。以下是我所经历的步骤列表:
1)从以下位置安装:
2)设置PATH变量:
export PATH = $ PATH:/ usr / local / go / bin
3 )设置GOROOT
export GOROOT = / usr / local / go
$ b $ 4设置GOPATH(必须与GOROOT不同)
export GOPATH = / usr / local / go-dependencies(如果不存在,必须创建go-dependencies目录)
$ b $ 5结帐apprtc代码
git clone
6)复制碰撞文件到$ GOROOT / src:
sudo cp -rf apprtc / src / collider / collider / usr / local / go / src /
sudo cp -rf apprtc / src / collider / collidermain / usr / local / go / src /
sudo cp -rf apprtc / src / collider / collidertest / usr / loc al / go / src /
7)安装websocket:
go get -v golang.org/x/net/websocket
)b
8)安装依赖关系:
去获得collidermain
$ b
9)安装collidermain:
安装collidermain
10运行collidermain:
/ usr / local / go / bin / collidermain -port = 8089 -tls = false(需要证书才能在启用tls的情况下运行) p>
I have deployed the apprtc's google app engine code on my own GAE server. I don't find instructions on how to deploy the Go based collider for websocket signaling.
Here is the collider project: https://github.com/webrtc/apprtc/tree/master/src/collider
Any insights would help.
Collider needs to be deployed in Google Compute Engine or equivalent services by Amazon. Here is the list of steps that I had go through:
1) Install go from: https://storage.googleapis.com/golang/go1.5.1.linux-amd64.tar.gz
2) Set PATH variable: export PATH=$PATH:/usr/local/go/bin
3) Set GOROOT export GOROOT=/usr/local/go
4) Set GOPATH (must be different from GOROOT) export GOPATH=/usr/local/go-dependencies (have to create go-dependencies directory if not there)
5) Checkout apprtc code: git clone https://github.com/webrtc/apprtc.git
6) Copy collider files to $GOROOT/src: sudo cp -rf apprtc/src/collider/collider /usr/local/go/src/ sudo cp -rf apprtc/src/collider/collidermain /usr/local/go/src/ sudo cp -rf apprtc/src/collider/collidertest /usr/local/go/src/
7) Install websocket: go get -v golang.org/x/net/websocket
8) Install Dependencies: go get collidermain
9) Install collidermain: go install collidermain
10 Run collidermain: /usr/local/go/bin/collidermain -port=8089 -tls=false (need a certificate to run with tls enabled)
这篇关于如何将Apprtc的碰撞器部署到Google App Engine中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!