2016-10-27 8 views
0

私はherokuでアプリケーションをデプロイしようとしています。私はrevelフレームワークを使用していますが、(問題があるかどうかはわかりません)前にフレームワークを使用していなかったのですが、昨日私は自分のコードをフレームワークに移しました。 Webアプリケーションはローカルで動作しますが、herokuにはデプロイできません。私は「gitのプッシュHerokuのマスター」私は何をする必要があるかHeroku上でrevelアプリケーションをデプロイ

Counting objects: 46, done. 
Delta compression using up to 4 threads. 
Compressing objects: 100% (41/41), done. 
Writing objects: 100% (46/46), 135.45 KiB | 0 bytes/s, done. 
Total 46 (delta 2), reused 0 (delta 0) 
remote: Compressing source files... done. 
remote: Building source: 
remote: 
remote: -----> Go app detected 
remote: -----> Checking Godeps/Godeps.json file. 
remote: -----> Using go1.6.3 
remote: !! Installing package '.' (default) 
remote: !!  
remote: !!  
remote: -----> Running: godep go install -v -tags heroku . 
remote: can't load package: package ndc-console: no buildable Go source files in /tmp/tmp.XI5m2PPe7K/.go/src/ndc-console 
remote: godep: go exit status 1 
remote: !  Push rejected, failed to compile Go app. 
remote: 
remote: !  Push failed 
remote: Verifying deploy.... 
remote: 
remote: ! Push rejected to ndc-console. 
remote: 
To https://git.heroku.com/ndc-console.git 
! [remote rejected] master -> master (pre-receive hook declined) 
error: failed to push some refs to 'https://git.heroku.com/ndc-console.git' 

任意のアイデアをしようとすると、

は、これが出力されます? ありがとうございます。

+0

バイナリをビルドして[スラッグを割り当てて公開する](https://devcenter.heroku.com/articles/platform-api-deploying-slugs)。この方法で実行されたデプロイメントでは、約3秒かかります。 – thwd

+0

私はいくつかの変更を加えていますが、次に試してみます。どうもありがとう@thwd –

答えて

1

build a slug locally @thwdの示唆どおりですが、linux/amd64用にビルドしていないのであれば、少し面倒かもしれません。 (自分でこれをやったことはありません)

もう1つの方法はbuild packです。 revelの公式ビルドパックはここにあります:https://github.com/robfig/heroku-buildpack-go-revelしかし、私はそれが古くなったと思います - あなたはそれをフォークし、あなたのニーズに合わせて修正する必要があります。 (ここにはmy version

+0

はい。ビルドパックを使用するのは解決策でした...しかし、私はヒロクで新しいアプリケーションを作成し、最初にビルドパックをインストールする必要がありました。 –

関連する問題