gpt4 book ai didi

heroku - Go:部署在 Heroku 上

转载 作者:数据小太阳 更新时间:2023-10-29 03:28:52 30 4
gpt4 key购买 nike

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

我错过了什么?谢谢

最佳答案

要修复它,您应该得到 Godep

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

在项目目录下

godep save

更多信息在 artice

关于heroku - Go:部署在 Heroku 上,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27515454/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com