简体   繁体   English

Heroku Golang部署

[英]Heroku Golang Deployment

Here is my workspace 这是我的工作区

$GOPATH/src/github.com/ulukma/weder-deploy $ GOPATH / src目录/ github.com / ulukma / weder部署

I have Procfile 我有Procfile

web:weder-deploy 网址:weder部署

and also I have Godeps folder. 而且我还有Godeps文件夹。

And I pushed my app to Heroku successfully. 我成功地将我的应用程序推送到了Heroku。 But when I am trying to open it I get an error 但是当我尝试打开它时出现错误

2018-09-06T22:49:31.839903+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/" host=weaderapp.herokuapp.com request_id=64fd68c8-3012-4bc6-9a00-eedaacbb799c fwd="64.30.109.147" dyno= connect= service= status=503 bytes= protocol=https 2018-09-06T22:49:32.590403+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/favicon.ico" host=weaderapp.herokuapp.com request_id=d962d485-85f9-44a7-9214-da7922495656 fwd="64.30.109.147" dyno= connect= service= status=503 bytes= protocol=https 2018-09-06T22:49:31.839903 + 00:00 heroku [router]:at =错误代码= H14 desc =“没有正在运行的Web进程” method = GET path =“ /” host = weaderapp.herokuapp.com request_id = 64fd68c8 -3012-4bc6-9a00-eedaacbb799c fwd =“ 64.30.109.147” dyno = connect =服务= status = 503字节= protocol = https 2018-09-06T22:49:32.590403 + 00:00 heroku [router]:at = error代码= H14 desc =“未运行Web进程”方法=获取路径=“ / favicon.ico”主机= weaderapp.herokuapp.com request_id = d962d485-85f9-44a7-9214-da7922495656 fwd =“ 64.30.109.147” dyno = connect =服务=状态= 503字节=协议= https

You need to scale your app to at least one web dyno: 您需要将应用程序扩展到至少一个网络测功机:

heroku ps:scale web=1

This will boot one dyno (container) running your weder-deploy command, allowing requests to go through that container and resolving that specific error. 这将启动一个运行您的weder-deploy命令的weder-deploy (容器),允许请求通过该容器并解决该特定错误。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM