This sample demonstrates how to use Google Cloud Datastore from Google App Engine standard environment.
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.
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
To save your project settings so that you don't need to enter the parameters, you can:
- Update the
<application>tag insrc/main/webapp/WEB-INF/appengine-web.xmlwith your project name. - Update the
<version>tag insrc/main/webapp/WEB-INF/appengine-web.xmlwith your version name.
You will now be able to run
$ mvn appengine:update
without the need for any additional parameters.