我正在尝试按照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$
该应用程序给出了一个错误:
我究竟做错了什么?
最佳答案
我尝试了很多无效的方法:
最后,再次从头开始,从命令行而不是从Eclipse创建项目,并且此方法有效。
从上述情况来看,我可以排除#1和#4作为修复程序,因为我将返回最初使用的配置。
让我失望的另一件事是在不同的网站和帖子中对“.godir”的引用。我不知道该文件曾经用于什么用途,但似乎不再需要了。
现在,我要指出Eclipse及其Go插件是罪魁祸首。