我有一个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