Go应用程序未部署在Heroku上

时间:2018-11-01 07:31:29

标签: git go heroku

我有一个Go应用程序,我想在Heroku上部署它。执行命令时: git push Heroku master,它会产生以下错误。

Installing go1.11.1
remote: -----> Fetching go1.11.1.linux-amd64.tar.gz... done
remote: -----> Fetching errors-0.8.0.tar.gz... done
remote: -----> Fetching gb-0.4.4.tar.gz... done
remote: -----> Installing GB v0.4.4... done
remote: -----> Running: gb build -tags heroku
remote: FATAL: command "build" failed: no packages supplied
remote:  !     Push rejected, failed to compile Go app.

我执行了以下步骤:

$ heroku login
$ git init
$ git add -A .
$ git commit -m code
$ echo 'web: gumball' > Procfile
$ go get github.com/kr/godep
$ godep save 
$ git add -A .
$ git commit -m dependencies
$ heroku create -b https://github.com/kr/heroku-buildpack-go.git
$ git push heroku master

0 个答案:

没有答案