diff --git a/Procfile b/Procfile index 004a201..30e11a2 100644 --- a/Procfile +++ b/Procfile @@ -1 +1 @@ -web: java -jar gogo-server.jar 1024 \ No newline at end of file +web: java $JAVA_OPTS -cp gogo-server.jar io.gogo.GoGoServer $PORT diff --git a/README.md b/README.md index e332dd7..5aabf94 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,7 @@ +[GoGo官网][1] [Gitter聊天室][2] 大家可以到这里来讨论 + +---- + ### 部署 APP ### ---- 首先在 heroku 绑定自己的GitHub
@@ -8,10 +12,14 @@ fork 一下 https://github.com/Kisesy/Gogo 到自己 GitHub
在 settings 页有个 Buildpacks 点击 add Buildpack
填上 https://github.com/heroku/heroku-buildpack-java
-回到部署页面,点最下面的 Deploy Branch 就行了
+回到部署页面,点最下面的 `Deploy Branch` 就行了
> 这样就完成了 App 的部署 +傻瓜版部署图 + +![snipaste20170113_103931](https://cloud.githubusercontent.com/assets/5843694/21916621/ca341f58-d97c-11e6-8df3-980856201ee6.png) + 打开 GoGo 里 config 文件夹下的 gogo.conf,把部署的 app 按下面这样写 ```json "version" : "1.6.0", @@ -28,3 +36,28 @@ fork 一下 https://github.com/Kisesy/Gogo 到自己 GitHub
} ``` 重载gogo,打开 http://127.0.0.1:9092/apps 就能看到效果了 + + +### 更新 APP ### +---- +很简单,以后 GoGo 更新了服务端,大家只要把服务端改名为 `gogo-server.jar`
+然后把服务端文件拖放到自己的 Github Gogo 项目中,上传,提交
+再到 heroku 的 APP 的部署页面最下面点 `Deploy Branch` 按钮,即可更新部署完成 + +或者点部署页面里的 `Enable automatic deploys` 按钮,这样以后只更新 Github 里的文件即可自动部署 + +如果不想自己更新,想要跟我的同步,也可以这么做:通过pull request拉取更新 +参考知乎 https://www.zhihu.com/question/20393785/answer/30725725 + + +### 部署失败? ### +---- +如果部署完成后打开app的地址,发现 `Application Error`,可以到 app 的 `Overview` 页查看这里是否是 **OFF** 状态 + +![sp20161011_113357](https://cloud.githubusercontent.com/assets/5843694/19257917/211b0fa0-8fa6-11e6-96d2-e379e0792de5.png) + +如果是 OFF 状态,可以到箭头所指的页面,把里面的开关按钮,掰到右边
+如果切换为ON还是有问题,或者有其他错误,可以到 `Gitter聊天室` 问一下 + + [1]: http://www.gogotunnel.com/ "GoGo 官网" + [2]: https://gitter.im/gogotunnel/gogo "Gitter聊天室" \ No newline at end of file diff --git a/gogo-server.jar b/gogo-server.jar index bb6b99f..ab7be17 100644 Binary files a/gogo-server.jar and b/gogo-server.jar differ diff --git a/pom.xml b/pom.xml index ab44efe..2445392 100644 --- a/pom.xml +++ b/pom.xml @@ -6,32 +6,4 @@ com.example 1.0-SNAPSHOT helloworld - - - org.eclipse.jetty - jetty-servlet - 7.6.0.v20120127 - - - javax.servlet - servlet-api - 2.5 - - - - - - org.apache.maven.plugins - maven-dependency-plugin - 2.4 - - - copy-dependencies - package - copy-dependencies - - - - - \ No newline at end of file