【发布时间】:2017-10-29 04:51:01
【问题描述】:
我在 App Engine 中创建了一个示例应用 guestbook-foo。
它在localhost:8080 中运行良好,但是当我部署项目时,我得到一个“找不到匹配的索引”。错误。
API error 4 (datastore_v3: NEED_INDEX): no matching index found. recommended index is:
- kind: Greeting
ancestor: yes
properties:
- name: Date
direction: desc
在项目目录中有一个index.yaml
indexes:
- kind: Greeting
ancestor: yes
properties:
- name: Date
direction: desc
我想我必须将索引文件上传到服务器。但我找不到我应该在哪里指定文件。如何配置gcloud app deploy 选项?还是有其他配置方式?
【问题讨论】:
标签: google-app-engine go google-cloud-datastore