Skip to content

Commit 580b669

Browse files
committed
Add instrcutions to override <application> and <version> tags.
Since many users may want to run with multiple projects/versions (dev, staging, prod) document how to deploy this sample without having to modify the application-web.xml file.
1 parent 85fb6b2 commit 580b669

File tree

2 files changed

+19
-4
lines changed

2 files changed

+19
-4
lines changed

appengine/appidentity/README.md

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,27 @@
11
# App Identity sample for Google App Engine
22
This sample demonstrates how to use the App Identity APIs on Google App Engine
33

4+
## Running locally
5+
$ mvn appengine:devserver
6+
7+
## Deploying
8+
In the following command, replace YOUR-PROJECT-ID with your
9+
[Google Cloud Project ID](https://developers.google.com/console/help/new/#projectnumber)
10+
and YOUR-VERSION with a suitable version identifier.
11+
12+
$ mvn appengine:update -Dappengine.appId=YOUR-PROJECT-ID -Dappengine.version=YOUR-VERSION
13+
414
## Setup
15+
To save your project settings so that you don't need to enter the
16+
`-Dappengine.appId=YOUR-CLOUD-PROJECT-ID` or
17+
`-Dappengine.version=YOUR-VERSION-NAME` parameters, you can make the following
18+
changes:
19+
520
1. Update the <application> tag in src/main/webapp/WEB-INF/appengine-web.xml with your project name
621
1. Update the <version> tag in src/main/webapp/WEB-INF/appengine-web.xml with your version name
722

8-
## Running locally
9-
$ mvn appengine:devserver
23+
You will now be able to run
1024

11-
## Deploying
1225
$ mvn appengine:update
26+
27+
without the need for any additional paramters.

appengine/appidentity/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ Copyright 2015 Google Inc. All Rights Reserved.
9595
<plugin>
9696
<groupId>com.google.appengine</groupId>
9797
<artifactId>appengine-maven-plugin</artifactId>
98-
<version>1.9.28</version>
98+
<version>${appengine.target.version}</version>
9999
</plugin>
100100
</plugins>
101101
</build>

0 commit comments

Comments
 (0)