前往:在Heroku上部署

With help of the article I'm trying to deploy Go-lang app to heroku. The problem is I get an error while deploying

-----> 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

What did I miss? Thanks

To fix it you should get Godep

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

after that in project directory

godep save

more information in the artice

Heroku now officially supports Go and has a Getting Started guide and other docs.