@@ -39,7 +39,7 @@ NOTE: Fileset uses the default App Engine Google Cloud Storage bucket
39
39
(` gs://appid.appspot.com ` ) to upload files.
40
40
41
41
1 . Within your project, create a directory to house the server files, e.g.
42
- ` ./backend/fileset ` . Avoid mixing the server configuration with any tools to
42
+ ` ./backend/server ` . Avoid mixing the server configuration with any tools to
43
43
build your website. The ` package.json ` , etc. should be kept separate in order
44
44
to keep the deployment slim.
45
45
@@ -64,11 +64,17 @@ service: fileset
64
64
runtime : nodejs10
65
65
` ` `
66
66
67
- 4. Deploy the app and enable the Cloud Datastore API .
67
+ 4. Create the app and deploy .
68
68
69
69
` ` ` bash
70
- gcloud app deploy --project=<AppID> app.yaml
71
- gcloud services enable datastore.googleapis.com --project=<AppID>
70
+ # Create an App Engine app if one doesn't exist yet.
71
+ gcloud app create --project=<AppId>
72
+
73
+ # Enable the Cloud Datastore API.
74
+ gcloud services enable datastore.googleapis.com --project=<AppId>
75
+
76
+ # Deploy the app.
77
+ gcloud app deploy --project=<AppId> app.yaml
72
78
```
73
79
74
80
### Deployment setup
@@ -80,9 +86,16 @@ Google Cloud Platform services before and need information on authentication.
80
86
1 . Create a ` fileset.yaml ` configuration file.
81
87
82
88
``` yaml
83
- site : siteId # Specify a site ID. If blank, `default` will be used.
89
+ # Your Google Cloud project's ID (required).
90
+ google_cloud_project : <AppId>
91
+
92
+ # Your site ID (optional). If blank, `default` will be used.
93
+ site : <SiteId>
94
+
95
+ # Specify a launch schedule. The schedule maps timestamps to branches or commit
96
+ # shas. If blank, `master` is used for the default deployment.
84
97
schedule :
85
- default : master # Specify a branch for the prod deployment.
98
+ default : master
86
99
` ` `
87
100
88
101
2. Generate your files.
@@ -138,18 +151,18 @@ Build, your project's Cloud Build service account
138
151
To determine your project's project number :
139
152
140
153
` ` ` bash
141
- gcloud projects describe <AppID >
154
+ gcloud projects describe <AppId >
142
155
` ` `
143
156
144
157
__Application default service account__ : When the command is invoked locally
145
158
(i.e. for testing or for manual uploads), you'll likely want to use your App
146
- Engine app's default service account (`<AppID >@appspot.gserviceaccount.com`).
159
+ Engine app's default service account (`<AppId >@appspot.gserviceaccount.com`).
147
160
You can download a service account key by running :
148
161
149
162
` ` ` bash
150
163
gcloud iam service-accounts keys create \
151
164
key.json \
152
- --iam-account <AppID >@appspot.gserviceaccount.com
165
+ --iam-account <AppId >@appspot.gserviceaccount.com
153
166
` ` `
154
167
155
168
NOTE : This will download a `key.json` to your current directory. Avoid
0 commit comments