Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Google Cloud Datastore Sample

Java 7 runtime support on App Engine standard was deprecated on December 13, 2017 and will be shut down entirely on January 16, 2019. It is replaced by the Java 8 Runtime Environment.

Samples for the Java 8 runtime can be found here.

This sample demonstrates how to use Google Cloud Datastore from Google App Engine standard environment.

Running locally

This example uses the App Engine Maven plugin. To run this sample locally:

$ mvn appengine:devserver

To see the results of the sample application, open localhost:8080 in a web browser.

Deploying

In the following command, replace YOUR-PROJECT-ID with your Google Cloud Project ID and SOME-VERSION with a valid version number.

$ mvn appengine:update -Dappengine.appId=YOUR-PROJECT-ID -Dappengine.version=SOME-VERSION

Setup

To save your project settings so that you don't need to enter the parameters, you can:

  1. Update the <application> tag in src/main/webapp/WEB-INF/appengine-web.xml with your project name.
  2. Update the <version> tag in src/main/webapp/WEB-INF/appengine-web.xml with your version name.

You will now be able to run

$ mvn appengine:update

without the need for any additional parameters.