Google App Engine error: NeedIndexError: no matching index found

前端 未结 6 1628
说谎
说谎 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:36

    In my case, I have uploaded the index file manually like below:

    gcloud datastore indexes create "C:\Path\of\your\project\index.yaml"
    

    Then you should confirm the update:

    Configurations to update:
    
    descriptor:      [C:\Path\of\your\project\index.yaml]
    type:            [datastore indexes]
    target project:  [project_name]
    
    
    Do you want to continue (Y/n)?  y
    

    Then you can go to the Datastore console to check if the the index has been created via this link: https://console.cloud.google.com/datastore/indexes

提交回复
热议问题