git - heroku App 与带有 git 的 buildpack 不兼容
问题描述
我的 git 有问题我想推送我的应用程序,但我收到了这个错误
~/drsprayfoam/spray-foam-insulation [master]$ git push heroku master
Enumerating objects: 50, done.
Counting objects: 100% (50/50), done.
Delta compression using up to 4 threads
Compressing objects: 100% (45/45), done.
Writing objects: 100% (49/49), 129.25 KiB | 3.40 MiB/s, done.
Total 49 (delta 7), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> App not compatible with buildpack: https://github.com/heroku/heroku-buildpack-python.git
remote: More info: https://devcenter.heroku.com/articles/buildpacks#detection-failure
remote:
remote: ! Push failed
remote: Verifying deploy...
remote:
remote: ! Push rejected to drsprayfoam.
remote:
To https://git.heroku.com/drsprayfoam.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/drsprayfoam.git'
$ heroku buildpacks:set heroku/ruby
› Error: Multiple apps in git remotes
› Usage: --remote origin
› or: --app drsprayfoam
› Your local git repository has more than 1 app referenced in git remotes.
› Because of this, we can't determine which app you want to run this command against.
› Specify the app you want with --app or --remote.
› Heroku remotes in repo:
› drsprayfoam (heroku)
› drsprayfoam (origin)
›
› https://devcenter.heroku.com/articles/multiple-environments
$ git remote -v
heroku https://git.heroku.com/drsprayfoam.git (fetch)
heroku https://git.heroku.com/drsprayfoam.git (push)
origin https://git.heroku.com/drsprayfoam.git (fetch)
origin https://git.heroku.com/drsprayfoam.git (push)
解决方案
推荐阅读
- maven - rtMavenRun() Artifactory 插件不使用在 Jenkins 中配置的凭据
- javascript - 在底部选项卡导航器中卸载非活动屏幕(重置堆栈)
- sql - 有没有办法让 SQL 中的语句满足两个以上的条件?如果没有,有什么替代方案?
- reactjs - e.target.parentNode.getAttribute("id") / e.targe.getAttribute("id") 单元测试 jest enzyem
- mysql - 关于具有聚合函数的表的并集
- r - lubridate::duration("minutes") 在持续时间小于 60 秒时返回错误
- javascript - 通过读取 Node.js 中目录中的所有文件来动态导出模块
- r - 用不同的变量以天为单位汇总小时数?
- typescript - 如何使用 package.json 中的 typesVersions 字段为较新的 typescript 版本提供更严格的类型?
- pandas - 使用 groupby 进行 Pandas 标准化