为了账号安全,请及时绑定邮箱和手机立即绑定

在 Heroku 上运行 Go 应用

在 Heroku 上运行 Go 应用

Go
人到中年有点甜 2021-09-09 21:16:00
我正在尝试按照https://mmcgrana.github.io/2012/09/getting-started-with-go-on-heroku 上的教程进行操作。最初似乎一切正常:ceiroa-ltm:my_heroku_app ceiroa$ heroku create -b https://github.com/kr/heroku-buildpack-go.gitCreating glacial-badlands-6720... done, stack is cedar-14BUILDPACK_URL=https://github.com/kr/heroku-buildpack-go.githttps://glacial-badlands-6720.herokuapp.com/ | https://git.heroku.com/glacial-badlands-6720.gitGit remote heroku addedceiroa-ltm:my_heroku_app ceiroa$ git push heroku masterCounting objects: 10, done.Delta compression using up to 4 threads.Compressing objects: 100% (6/6), done.Writing objects: 100% (10/10), 925 bytes | 0 bytes/s, done.Total 10 (delta 0), reused 0 (delta 0)remote: Compressing source files... done.remote: Building source:remote: remote: -----> Fetching custom git buildpack... doneremote: -----> Go app detectedremote: -----> Installing go1.3.3... doneremote: -----> Running: godep go install -tags heroku ./...remote: -----> Discovering process typesremote: remote: -----> Compressing... done, 1.5MBremote: -----> Launching... done, v4remote:        https://glacial-badlands-6720.herokuapp.com/ deployed to Herokuremote: remote: Verifying deploy... done.To https://git.heroku.com/glacial-badlands-6720.git * [new branch]      master -> master但是,没有旋转 dynos:ceiroa-ltm:my_heroku_app ceiroa$ heroku psceiroa-ltm:my_heroku_app ceiroa$ 该应用程序给出了一个错误:
查看完整描述

2 回答

?
慕婉清6462132

TA贡献1804条经验 获得超2个赞

Heroku 现在正式支持Go并且有一个入门指南。


查看完整回答
反对 回复 2021-09-09
  • 2 回答
  • 0 关注
  • 212 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信