dsk95913 2016-02-20 14:36
浏览 48

如何让Heroku检测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

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.

Despite this push attempts continue to produce the same error 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.

  • 写回答

1条回答 默认 最新

  • douqian2524 2016-02-20 18:36
    关注

    According to the documentation, the go buildpack requires Godep in order to know how to build and deploy your app.

    Do a godep save and commit that before pushing to Heroku.

    评论

报告相同问题?

悬赏问题

  • ¥25 由IPR导致的DRIVER_POWER_STATE_FAILURE蓝屏
  • ¥50 有数据,怎么建立模型求影响全要素生产率的因素
  • ¥50 有数据,怎么用matlab求全要素生产率
  • ¥15 TI的insta-spin例程
  • ¥15 完成下列问题完成下列问题
  • ¥15 C#算法问题, 不知道怎么处理这个数据的转换
  • ¥15 YoloV5 第三方库的版本对照问题
  • ¥15 请完成下列相关问题!
  • ¥15 drone 推送镜像时候 purge: true 推送完毕后没有删除对应的镜像,手动拷贝到服务器执行结果正确在样才能让指令自动执行成功删除对应镜像,如何解决?
  • ¥15 求daily translation(DT)偏差订正方法的代码