Coder Social home page Coder Social logo

gogo's Introduction

GoGo官网 Gitter聊天室 大家可以到这里来讨论


部署 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 的部署

傻瓜版部署图

snipaste20170113_103931

打开 GoGo 里 config 文件夹下的 gogo.conf,把部署的 app 按下面这样写

	  "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 就能看到效果了

更新 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

如果是 OFF 状态,可以到箭头所指的页面,把里面的开关按钮,掰到右边
如果切换为ON还是有问题,或者有其他错误,可以到 Gitter聊天室 问一下

gogo's People

Contributors

kisesy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

gogo's Issues

请问在OpenShift v2 旧版里面怎么部署gogo-server 服务端 谢谢指教!

@Kisesy 主任你好!
照你的教程搞好了,谢谢大大!
请问在OpenShift v2 旧版里面怎么部署gogo-server 服务端;我试过在OpenShift v2 平台创建
JBoss Application Server 7 项目 本地git push gogo-server 显示日志
remote: Git Post-Receive Result: success
remote: Activation status: success
remote: Deployment completed with status: success
To ssh://[email protected]/~/git/sasioqw21.gi
貌似成功了,域名输入浏览器没有 Welcome GoGo Server 提示,没搞定‘
我感觉是java的模板不对,布置gsonva pass d到v2没这么难搞
麻烦’Kisesy 主任给个指导谢谢!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.