Contains the code for using Cloud Datastore and Cloud SQL v2.
This is part of a Bookshelf tutorial.
Most users can get this running by updating the parameters in pom.xml. You'll
also need to [create a bucket][create-bucket] in Google Cloud Storage, referred
to below as MY-BUCKET.
mvn clean jetty:run-exploded \
-Dbookshelf.bucket=MY-BUCKET
-
Initialize the Google Cloud SDK
gcloud init -
In the
pom.xml, update the App Engine Maven Plugin with your Google Cloud Project Id:<plugin> <groupId>com.google.cloud.tools</groupId> <artifactId>appengine-maven-plugin</artifactId> <version>2.3.0</version> <configuration> <projectId>myProjectId</projectId> <version>GCLOUD_CONFIG</version> </configuration> </plugin>Note:
GCLOUD_CONFIGis a special version for autogenerating an App Engine version. Change this field to specify a specific version name. -
Deploy your App
mvn clean package appengine:deploy \ -Dbookshelf.bucket=MY-BUCKET