git - 解析 heroku.yml 的问题 - build.web 是一个被禁止的属性
问题描述
当我推送时,heroku master
我收到以下错误:
=!= There were problems parsing your heroku.yml. We've detected the following issues:
remote:
remote: "build" must validate one and only one schema (oneOf). Found none valid
remote:
remote: build.web in body is a forbidden property
remote:
remote: build.docker in body is a forbidden property
remote: Verifying deploy...
remote:
remote: ! Push rejected to radiant-crag-94686.
remote:
To https://git.heroku.com/radiant-crag-94686.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/radiant-crag-94686.git'
我heroku.yml
的就是这个,看起来像在 Heroku 开发中心:
setup:
addons:
- plan: heroku-postgresql
build:
docker:
web: Dockerfile
release:
image: web
command:
- python manage.py collectstatic --noinput
run:
web: gunicorn bookstore_project.wsgi
我尝试删除应用程序并创建一个新应用程序,仍然是同样的错误。
解决方案
您可以仔细检查heroku.yml
文件上的缩进吗?我遇到了错误.web in body is a forbidden property
并通过缩进下面的 web 属性来修复它run
。我会为 docker 属性检查相同的内容。我不确定其他错误。
推荐阅读
- android - 如何在android中制作xy圆图
- c# - 尝试从 flatbuffer 的二进制文件访问“LengthofTable”时出现 SystemAccessOutOfbound 异常
- file-io - 下载目录时如何将python-swiftclient的输出保存到文件中?
- python - 如何在 python 脚本中更改 Linux 的目录?
- c - 在正确的位置获得编译警告(`gcc`)
- api - spotify api 未提供令牌,错误 401,从 httparty 获取艺术家
- electron - 电子应用程序中的 net::ERR_CACHE_READ_FAILURE
- python - 在包含 JSON 和文本结构的 txt 文件中解析 JSON 结构
- python - 使用python替换图像中的白色行
- angular - 如何在 Angular 6 中首次加载时获取 URL 的片段