Google App Engine error: NeedIndexError: no matching index found

前端 未结 6 1599
说谎
说谎 2020-12-15 18:33

I\'m having trouble with Google\'s App engine indexes. When running my app via the GoogleAppEngineLauncher, the app is working fine. When deploying the app, I get the follow

6条回答
  •  时光说笑
    2020-12-15 19:20

    I stumbled on the same issue and your comments helped me in the right direction. Here's what Google says how to handle this:

    According to the Google documentation the story is that using

    gcloud app deploy 
    

    the index.yaml file is not uploaded (question is why not?). Anyway, one has to upload this index file manually.

    To do so, the documentation gives the following command:

    gcloud datastore create-indexes index.yaml
    

    (supposing you execute this from the same directory of the index.yaml file) Once you have done this you can go to the Datastore console and you will see the index has been created. It will then start to be indexed (took some 5 minutes in my case) and once the index is being served you can start your application.

提交回复
热议问题