Googleapps - how can I deploy my application

I created my first GoogleApps application and I want to deploy it to a server. It does not work, and in the logs I found an error:

Do not turn off the com.google.appengine.api.datastore.DatastoreNeedIndexException servlet exception: the index is not ready for this request. See the Data Warehouse Indexes page in the Admin console. Suggested index for this query:

<datastore-index kind="Greeting" ancestor="true" source="manual"> <property name="date" direction="desc"/> </datastore-index> 

I suppose I need to paste this code into my application, but I have no idea where. I followed this guide:

Google Apps TUTORIAL - Java

Any ideas?

Thanks in advance:)

+6
source share
1 answer

Assuming you are using the Java application engine, this code should be in your datastore-indexes.xml , located in your WEB-INF . The full xml file will look like this:

 <?xml version="1.0" encoding="utf-8"?> <datastore-indexes autoGenerate="true"> <datastore-index kind="Greeting" ancestor="true" source="manual"> <property name="date" direction="desc"/> </datastore-index> </datastore-indexes> 
+10
source

Source: https://habr.com/ru/post/902588/


All Articles