Go:freegeoip在heroku上部署
在Heroku应用程序上部署时,我遇到错误。在部署之前,我进行了godep保存,并将一些依赖项安装到项目的_工作区目录中Go:freegeoip在heroku上部署,heroku,go,dependency-management,Heroku,Go,Dependency Management,在Heroku应用程序上部署时,我遇到错误。在部署之前,我进行了godep保存,并将一些依赖项安装到项目的_工作区目录中 Counting objects: 1210, done. Delta compression using up to 2 threads. Compressing objects: 100% (690/690), done. Writing objects: 100% (1210/1210), 631.22 KiB, done. Total 1210 (delta 472)
Counting objects: 1210, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (690/690), done.
Writing objects: 100% (1210/1210), 631.22 KiB, done.
Total 1210 (delta 472), reused 1022 (delta 467)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Fetching custom git buildpack... done
remote: -----> Go app detected
remote: -----> Installing go1.4... done
remote: -----> Running: godep go install -tags heroku ./...
remote: cmd/freegeoip/main.go:20:2: cannot find package "github.com/fiorix/go-redis/redis" in any of:
remote: /app/tmp/cache/go1.4/go/src/github.com/fiorix/go-redis/redis (from $GOROOT)
remote: /tmp/build_302ca8290b15fc58739db8af3cc335ac/.heroku/g/src/github.com/fiorix/freegeoip/Godeps/_workspace/src/github.com/fiorix/go-redis/redis (from $GOPATH)
remote: /tmp/build_302ca8290b15fc58739db8af3cc335ac/.heroku/g/src/github.com/fiorix/go-redis/redis
remote: cmd/freegeoip/main.go:21:2: cannot find package "github.com/gorilla/context" in any of:
remote: /app/tmp/cache/go1.4/go/src/github.com/gorilla/context (from $GOROOT)
remote: /tmp/build_302ca8290b15fc58739db8af3cc335ac/.heroku/g/src/github.com/fiorix/freegeoip/Godeps/_workspace/src/github.com/gorilla/context (from $GOPATH)
remote: /tmp/build_302ca8290b15fc58739db8af3cc335ac/.heroku/g/src/github.com/gorilla/context
remote: godep: go exit status 1
remote:
remote: ! Push rejected, failed to compile Go app
remote:
remote: Verifying deploy...
remote:
remote: ! Push rejected to cryptic-temple-9401.
remote:
我该怎么做才能修好它?谢谢 您是否遵循任何教程来完成此操作?使用heroku buildpack go?滚动到此页面末尾:@Omie是的,我已经用heroku buildpack创建了heroku应用程序,Gopack需要更多详细信息。你的目录结构是什么样的?你能提供树的输出吗?戈迪尔,里面有什么?可能会从以下要点和注释中了解设置相同的内容: