git - 解析heroku.yml时出现问题-build.web是一个禁止的属性

标签 git docker heroku

当我推送到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错误,并通过缩进run下面的网络媒体资源来解决它。我会检查docker属性是否相同。我不确定其他错误。

关于git - 解析heroku.yml时出现问题-build.web是一个禁止的属性,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62114241/

相关文章:

git - 永久忽略对跟踪文件的本地更改

git - 挤压 Git 镜像提交

heroku - Imagemagick - 在 Heroku 上更改 policy.xml

docker - Docker-连接到本地主机-连接被拒绝

ruby-on-rails - Heroku调试

ssl - 在 heroku 上,是否绝对没有办法将 heroku 上的 https 裸域重定向到带有 wwws 的非裸域?

git - 如何从 git 存储库查看二进制(图像或非代码)文件的旧版本?

php - Composer 错误 : no matching package found

java - 如何避免生成以太坊 DAG 进行测试?

docker - Prometheus - 目标连接被拒绝