Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GoogleApps - how can I deploy my application

I created my first application GoogleApps and I want to deploy it on server. It doesn't work and in logs I found an error:

Uncaught exception from servlet com.google.appengine.api.datastore.DatastoreNeedIndexException: The index for this query is not ready to serve. See the Datastore Indexes page in the Admin Console. The suggested index for this query is:

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

I suppose that I have to paste this code into my application but I have no idea where. I was following this tutorial:

Google Apps TUTORIAL - Java

Any ideas?

Thanks in advance :)

like image 850
ruhungry Avatar asked Nov 28 '11 19:11

ruhungry


1 Answers

Assuming you're using the Java app engine, that code needs to go in your datastore-indexes.xml file located in your WEB-INF directory. The full xml file would look like:

<?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>
like image 65
Chris Avatar answered Sep 28 '22 08:09

Chris