From 302e5fa9f382e78fde50c34b0d29e6e814975836 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C2=B7Shishioh?= Date: Mon, 18 Apr 2016 18:56:25 +0800 Subject: [PATCH] Create README.md --- README.md | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..e332dd7 --- /dev/null +++ b/README.md @@ -0,0 +1,30 @@ +### 部署 APP ### +---- +首先在 heroku 绑定自己的GitHub
+fork 一下 https://github.com/Kisesy/Gogo 到自己 GitHub
+ +在 heroku 新建个app,建完之后在部署页面(deploy)有个 Deployment method,选成 Github
+然后在下面的 Connect to GitHub 右边的框里写上 "gogo",点搜索,选上刚才 fork 的 Gogo
+ +在 settings 页有个 Buildpacks 点击 add Buildpack
+填上 https://github.com/heroku/heroku-buildpack-java
+回到部署页面,点最下面的 Deploy Branch 就行了
+ +> 这样就完成了 App 的部署 + +打开 GoGo 里 config 文件夹下的 gogo.conf,把部署的 app 按下面这样写 +```json + "version" : "1.6.0", + "proxyOnlyForForeignIPs" : "true", + "apps" : [{ + "app" : "创建App的名字", <==== 关键 + "platform" : "heroku" + }, { + "app" : "freetunnel0", + "platform" : "heroku" + }, { + "app" : "freetunnel1", + "platform" : "heroku" + } +``` +重载gogo,打开 http://127.0.0.1:9092/apps 就能看到效果了