当我试图将我的应用程序部署到heroku时,我收到了:
应用程序与buildpack不兼容:https://github.com/kr/heroku-buildpack-go.git
我遵循的步骤是:
-
如中所述,我使用
heroku create -b https://github.com/kr/heroku-buildpack-go.git
命令在heroku上创建了一个项目 -
然后我运行
heroku config:set BUILDPACK_URL=https://github.com/kr/heroku-buildpack-go
命令来再次设置构建包
然后我尝试git push heroku master
,但收到App not compatible with buildpack: https://github.com/kr/heroku-buildpack-go.git
错误
我还将我的GitHub帐户连接到heroku,并尝试从GitHub上的master分支进行部署。但我仍然面临这个错误(应用程序与buildpack不兼容:https://github.com/kr/heroku-buildpack-go.git)
如何解决?
这里的原因是因为您不应该将git url用作构建包。https://github.com/mars/create-react-app-buildpack.git是默认值。试试这个:
heroku buildpacks:clear
heroku buildpacks:set mars/create-react-app