Skip to content

Commit

Permalink
Merge pull request #1 from Kisesy/master
Browse files Browse the repository at this point in the history
update
  • Loading branch information
lazureice authored Apr 18, 2019
2 parents 302e5fa + 0213ea0 commit 793be15
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 30 deletions.
2 changes: 1 addition & 1 deletion Procfile
Original file line number Diff line number Diff line change
@@ -1 +1 @@
web: java -jar gogo-server.jar 1024
web: java $JAVA_OPTS -cp gogo-server.jar io.gogo.GoGoServer $PORT
35 changes: 34 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
[GoGo官网][1] [Gitter聊天室][2] 大家可以到这里来讨论

----

### 部署 APP ###
----
首先在 heroku 绑定自己的GitHub</br>
Expand All @@ -8,10 +12,14 @@ fork 一下 https://github.com/Kisesy/Gogo 到自己 GitHub</br>

在 settings 页有个 Buildpacks 点击 add Buildpack</br>
填上 https://github.com/heroku/heroku-buildpack-java</br>
回到部署页面,点最下面的 Deploy Branch 就行了</br>
回到部署页面,点最下面的 `Deploy Branch` 就行了</br>

> 这样就完成了 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",
Expand All @@ -28,3 +36,28 @@ fork 一下 https://github.com/Kisesy/Gogo 到自己 GitHub</br>
}
```
重载gogo,打开 http://127.0.0.1:9092/apps 就能看到效果了


### 更新 APP ###
----
很简单,以后 GoGo 更新了服务端,大家只要把服务端改名为 `gogo-server.jar` </br>
然后把服务端文件拖放到自己的 Github Gogo 项目中,上传,提交 </br>
再到 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 状态,可以到箭头所指的页面,把里面的开关按钮,掰到右边</br>
如果切换为ON还是有问题,或者有其他错误,可以到 `Gitter聊天室` 问一下

[1]: http://www.gogotunnel.com/ "GoGo 官网"
[2]: https://gitter.im/gogotunnel/gogo "Gitter聊天室"
Binary file modified gogo-server.jar
Binary file not shown.
28 changes: 0 additions & 28 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,32 +6,4 @@
<groupId>com.example</groupId>
<version>1.0-SNAPSHOT</version>
<artifactId>helloworld</artifactId>
<dependencies>
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-servlet</artifactId>
<version>7.6.0.v20120127</version>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
<version>2.5</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.4</version>
<executions>
<execution>
<id>copy-dependencies</id>
<phase>package</phase>
<goals><goal>copy-dependencies</goal></goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

0 comments on commit 793be15

Please sign in to comment.