我正在尝试使用此 buildpack https://github.com/robfig/heroku-buildpack-go-revel在 Heroku 上使用 Go 和 Revel,但它似乎不起作用:
我在尝试使用基本的 revel helloworld 示例时遇到错误。
$ go get github.com/robfig/helloworld
$ cd $GOPATH/src/github.com/robfig/helloworld
$ echo "github.com/robfig/helloworld" > .godir
$ git add .godir
$ git commit -a -m ".godir"
$ heroku create -b https://github.com/robfig/heroku-buildpack-go-revel.git
$ git push heroku master
Counting objects: 34, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (23/23), done.
Writing objects: 100% (34/34), 57.41 KiB | 0 bytes/s, done.
Total 34 (delta 1), reused 0 (delta 0)
-----> Fetching custom git buildpack... done
-----> Revel app detected
-----> Installing Go 1.1.2... done
Installing Virtualenv... done
Installing Mercurial... done
Installing Bazaar... done
-----> Running: go get -tags heroku ./...
mv: cannot stat `/tmp/build_86bd3433-7925-4ae9-b4bf-f5466525aef1/.go/bin/*': No such file or directory
! Push rejected, failed to compile Revel app
To git@heroku.com:peaceful-hamlet-6152.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git@heroku.com:peaceful-hamlet-6152.git'