@@ -12,20 +12,22 @@ working WordPress project for
12
12
* Create a new Cloud Project on [ Developers Console] [ dev-console ]
13
13
* Enable Billing on that project
14
14
* [ Enable Cloud SQL API] [ cloud-sql-api-enable ]
15
- * Create App Engine default bucket at [ App Engine Setting Page] [ app-engine-setting ]
16
15
* Install [ Google Cloud SDK] [ gcloud-sdk ]
17
16
18
17
## Prerequisites for standard environment only
19
18
* Install mysql
20
19
21
20
## Project preparation
22
21
23
- Configure Google Cloud SDK with your account and the Project.
22
+ Configure Google Cloud SDK with your account and the appropriate project ID:
24
23
25
24
```
26
25
$ gcloud init
27
- ...
28
- ...
26
+ ```
27
+
28
+ Create an App Engine application within your new project:
29
+
30
+ ```
29
31
$ gcloud app create
30
32
```
31
33
@@ -38,28 +40,11 @@ follows:
38
40
$ gsutil defacl ch -u AllUsers:R gs://YOUR_PROJECT_ID.appspot.com
39
41
```
40
42
41
- ## Create and configure a Cloud SQL instance
42
-
43
- If you will use App Engine flexible environment, create a Cloud SQL
44
- 2nd generation instance, and if you will use App Engine standard
45
- environment, create a Cloud SQL 1st generation instance.
43
+ ### Create and configure a Cloud SQL 2nd generation instance
46
44
47
- In this guide, we use ` wp ` for various resource names; the instance
45
+ Note: In this guide, we use ` wp ` for various resource names; the instance
48
46
name, the database name, and the user name.
49
47
50
- ### Create and configure a Cloud SQL 1st generation instance(for standard environment)
51
-
52
- Go to the [ SQL settings in the Cloud Console] [ sql-settings ] and create
53
- an instance ` wp ` and database named ` wp ` . Go to the Access Control ->
54
- Users, then change the password for ` root@localhost ` . You will use
55
- this password for accessing from App Engine application.
56
-
57
- Also create the ` wp ` database in the local mysql server. The local
58
- mysql instance is required to run ` wp-cli ` tool for
59
- installing/upgrading plugins and themes.
60
-
61
- ### Create and configure a Cloud SQL 2nd generation instance(for flexible environment)
62
-
63
48
You can create a new Cloud SQL Second Generation instance with the
64
49
following command:
65
50
0 commit comments