简体   繁体   English

如何让Heroku检测GO buildpack

[英]How to get Heroku to detect GO buildpack

In attempting to deploy my own GO app using git push heroku master I get the error Push rejected, failed to detect set buildpack heroku/go 在尝试使用git push heroku master部署我自己的GO应用程序时,我收到错误Push rejected, failed to detect set buildpack heroku/go

Because the error is quite specific about failure to detect a buildpack I tried manually setting it with the command heroku buildpacks:set heroku/go The response however was ! Thebuildpack heroku/go is already set on your app. 因为错误非常具体,无法检测到buildpack,我尝试使用命令heroku buildpacks:set heroku/go手动设置它heroku buildpacks:set heroku/go然而响应是! Thebuildpack heroku/go is already set on your app. ! Thebuildpack heroku/go is already set on your app.

Despite this push attempts continue to produce the same error Push rejected, failed to detect set buildpack heroku/go 尽管这种推送尝试继续产生相同的错误Push rejected, failed to detect set buildpack heroku/go

It seems like the error message is leading me astray, what else might be wrong? 似乎错误信息让我误入歧途,还有什么可能是错的? Following my research here, I made sure that there is a Procfile in the app folder and I was able to successfully follow all the steps for deploying the Heroku GO example beforehand. 在我的研究之后,我确保在app文件夹中有一个Procfile,我能够成功地按照事先部署Heroku GO示例的所有步骤进行操作。

According to the documentation , the go buildpack requires Godep in order to know how to build and deploy your app. 根据文档 ,go buildpack需要Godep才能知道如何构建和部署您的应用程序。

Do a godep save and commit that before pushing to Heroku. 在推送到Heroku之前,做一个godep save并提交。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM