在 Heroku 上运行 Go 应用

我正在尝试按照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.git

Creating glacial-badlands-6720... done, stack is cedar-14

BUILDPACK_URL=https://github.com/kr/heroku-buildpack-go.git

https://glacial-badlands-6720.herokuapp.com/ | https://git.heroku.com/glacial-badlands-6720.git

Git remote heroku added

ceiroa-ltm:my_heroku_app ceiroa$ git push heroku master

Counting 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... done

remote: -----> Go app detected

remote: -----> Installing go1.3.3... done

remote: -----> Running: godep go install -tags heroku ./...

remote: -----> Discovering process types

remote: 

remote: -----> Compressing... done, 1.5MB

remote: -----> Launching... done, v4

remote:        https://glacial-badlands-6720.herokuapp.com/ deployed to Heroku

remote: 

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 ps

ceiroa-ltm:my_heroku_app ceiroa$ 

该应用程序给出了一个错误:

http://img2.mukewang.com/613a093d0001042e07250260.jpg

人到中年有点甜
浏览 213回答 2
2回答

慕婉清6462132

Heroku 现在正式支持Go并且有一个入门指南。
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Go