0

このビルドパック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'
4

1 に答える 1

3

heroku-buildpack-go-revel をフォークして、存在しないディレクトリを移動していたエラーを修正できました (条件付きで移動するように変更しました)。

修正されたビルドパック:

その後、helloworld revel アプリを heroku にデプロイできました。

export GOPATH=$HOME/go
mkdir $GOPATH
go get github.com/dougnukem/revel-helloworld
cd $GOPATH/src/github.com/dougnukem/revel-helloworld
heroku create
heroku config:set BUILDPACK_URL=https://github.com/dougnukem/heroku-buildpack-go-revel.git
git push heroku master
heroku open

その修正を含むプル リクエストを送信しました。

于 2013-10-13T15:23:42.897 に答える