-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
在 Heroku 上部署后 APP 运行即崩溃 #7
Comments
服务器端gost版本是多少, |
@ginuerzh 多谢 G 大的回复,服务端版本 1.7, 这是我 查看日志如下:
发现出错在 搜到这篇文章 http://jamesmcfadden.co.uk/heroku-web-process-failed-to-bind-to-port-within-60-seconds-of-launch/ ,上面说 Heroku 每次开机都是随机端口, gost -L=":port" 这个端口必须是 Heroku 的环境变量中的 $PORT 值才行。 G 大可否帮助试验下 |
从日志及你所描述的情况来看,应该是端口限制导致的, |
多谢 G 大,直接使用
成功了……
写了个简要的步骤: https://code.google.com/p/goagent/issues/detail?id=22121 |
发现 Heroku 支持 WebSockets, 就在 Heroku 上部署了一个,可是
gost -ws
运行不起来,$ heroku logs
查看日志发现 gost 运行后崩溃,G 大是否有时间研究一下怎么在 Heroku 上运行 gost 呢?Godeps.json 和 Procfile 都没问题,部署后 gost 一直尝试运行,但最终崩溃:
"/gost/Godeps/Godeps.json"
"/gost/Procfile"
相关链接: https://devcenter.heroku.com/articles/go-websockets
The text was updated successfully, but these errors were encountered: