如何在GCP App Engine中将app.yaml文件转换为app.json

时间:2019-07-08 05:22:59

标签: google-app-engine google-cloud-platform

我正在尝试使用管理API在App Engine上部署应用程序。

我正在跟踪GCP docs,以使用rest api在应用程序引擎上部署应用程序。

我成功使用app.yaml文件在App Engine上手动部署了应用程序,但是当我们使用rest api时,我们需要根据GCP文档使用app.json文件。

在GCP文档中,他们建议使用convert_yaml.py tool,但我无法使用/理解此工具。

app.yaml

runtime: python27
api_version: 1
threadsafe: true
handlers:
  - url: /
    static_files: build/index.html
    upload: build/index.html
  - url: /
    static_dir: build

我尝试使用在线转换器将app.yaml转换为app.josn,但是当我在rest api中使用json文件时,出现错误。

error

如何将yaml转换为json,以便我可以使用rest API来取消应用的所有权?

0 个答案:

没有答案