我在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
选项?还是有另一种方式来配置它?
谢谢,下次我将在控制台上检查它。 – ironsand