我试图按照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
然而,没有动态旋转:
ceiroa-ltm:my_heroku_app ceiroa$ heroku ps
ceiroa-ltm:my_heroku_app ceiroa$
该应用程序出错:
我做错了什么?
答案 0 :(得分:0)
我尝试了一些没有用的东西:
最后再次从头开始,从命令行而不是从Eclipse创建项目,这很有效。
从上面的内容来看,我可以排除#1和#4作为修复,因为我回到使用我最初的相同配置。
让我失望的另一件事是提及" .godir"在不同的网站和帖子。我不知道这个文件曾经用过什么,但它似乎不再需要了。
我现在要指向Eclipse及其Go插件作为罪魁祸首。
答案 1 :(得分:0)
Heroku现在正式支持Go,并有Getting Started指南。