Go:在Heroku上部署

时间:2014-12-16 22:52:32

标签: heroku go

the article的帮助下,我试图将Go-lang应用程序部署到heroku。问题是我在部署

时遇到错误
-----> Fetching custom git buildpack... done
-----> Go app detected
-----> Installing go1.4... done

       Tired of waiting for bzr and hg?
       Try github.com/kr/godep for faster deploys.

       Installing Virtualenv... done
       Installing Mercurial... done
       Installing Bazaar... done
-----> Running: go get -tags heroku ./...
go install: no install location for directory /tmp/build_2c4fa2d4b9d0408123831030713fa930/.heroku/g/src outside GOPATH

 !     Push rejected, failed to compile Go app

我错过了什么?感谢

2 个答案:

答案 0 :(得分:0)

要解决此问题,您应该获得Godep

go get github.com/kr/godep
export PATH=$PATH:$GOPATH/bin

之后在项目目录

godep save

artice

中的更多信息

答案 1 :(得分:0)

Heroku现在officially supports去了Getting Started guide和其他docs