File tree 2 files changed +9
-8
lines changed
2 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -9,12 +9,12 @@ Developers Console](https://console.cloud.google.com/sql/instances). Alternative
9
9
2 . Change the root password (under Access Control) and / or create a new user / password.
10
10
3 . Create a Database (under Databases) (or use MySQL with ` gcloud sql connect <instance> --user=root ` )
11
11
4 . Note the ** Instance connection name** under Overview > properties
12
- (It will look like project: instance for v1 or project:region: zone for v2 )
12
+ (It will look like project: instance for 1st Generation or project:region: zone for 2nd Generation )
13
13
14
14
## Deploying
15
15
16
16
``` bash
17
- $ mvn clean appengine:deploy -DINSTANCE_CONNECTION_NAME=" instanceConnectionName" -Duser=root
17
+ $ mvn clean appengine:deploy -DINSTANCE_CONNECTION_NAME=instanceConnectionName -Duser=root
18
18
-Dpassword=myPassword -Ddatabase=myDatabase
19
19
```
20
20
@@ -23,6 +23,7 @@ Or you can update the properties in `pom.xml`
23
23
## Running locally
24
24
25
25
``` bash
26
- $ mvn clean appengine:run -Duser=root -Dpassword=myPassowrd -Ddatabase=myDatabase
26
+ $ mvn clean appengine:run -DINSTANCE_CONNECTION_NAME=instanceConnectionName - Duser=root -Dpassword=myPassowrd -Ddatabase=myDatabase
27
27
```
28
-
28
+ Note - you must use a local mysql instance for the 1st Generation instance and change the local Url
29
+ in ` src/main/webapp/WEB-INF/appengine-web.xml ` to use your local server.
Original file line number Diff line number Diff line change 31
31
<properties >
32
32
<!-- INSTANCE_CONNECTION_NAME from Cloud Console > SQL > Instance Details > Properties
33
33
or gcloud sql instances describe <instance>
34
- project:region:instance for Cloud SQL v2 or
35
- project:instance for Cloud SQL v1
34
+ project:region:instance for Cloud SQL 2nd Generation or
35
+ project:instance for Cloud SQL 1st Generation
36
36
-->
37
37
<INSTANCE_CONNECTION_NAME ></INSTANCE_CONNECTION_NAME >
38
38
<user >root</user >
39
- <password ></password >
40
- <database ></database >
39
+ <password >myPassword </password >
40
+ <database >sqldemo </database >
41
41
42
42
<!-- [START_EXCLUDE] -->
43
43
<appengine .maven.plugin>1.0.0</appengine .maven.plugin>
You can’t perform that action at this time.
0 commit comments