0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Unexpected attribute 'dispatch' for object of type AppInfoExternal.

Posted at

事象

Google App Engineのデプロイの際、メンテナンス画面に切り替えできるように dispatchファイルを dispatch-to-app.yamldispatch-to-maintenance.yaml の2種類用意した

$ gcloud app deploy dispatch-to-app.yaml
ERROR: (gcloud.app.deploy) An error occurred while parsing file: [/path/deployment/dispatch-to-app.yaml]
Unexpected attribute 'dispatch' for object of type AppInfoExternal.

実行すると dispatch-to-app.yamlapp.yaml と認識されてしまい、エラーとなってしまう

 解決

dispatchファイルは dispatch.yaml  というファイル名しか認識してくれないようなので、 複数のdispatchファイルを管理したい場合はディレクトリ分割する必要がある

.
|-- app.yaml
|-- dispatch.yaml
|-- index.html
`-- maintenance
    |-- app.yaml
    |-- dispatch.yaml
    `-- index.html
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?