Skip to content

Commit 5005b82

Browse files
chore: Migrate gsutil usage to gcloud storage (GoogleCloudPlatform#2177)
1 parent 819b008 commit 5005b82

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

appengine/flexible/wordpress/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Engine bucket is named YOUR_PROJECT_ID.appspot.com. Change the default Access
3535
Control List (ACL) of that bucket as follows:
3636

3737
```
38-
$ gsutil defacl ch -u AllUsers:R gs://YOUR_PROJECT_ID.appspot.com
38+
$ gcloud storage buckets update --add-default-object-acl-grant=allUsers:R gs://YOUR_PROJECT_ID.appspot.com
3939
```
4040

4141
### Create and configure a Cloud SQL for MySQL 2nd generation instance

logging/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ $ php src/list_entries.php your-project-id 'your-logger-name'
2121

2222
To use logging sinks, you will also need a Google Cloud Storage Bucket.
2323

24-
gsutil mb gs://[YOUR_PROJECT_ID]
24+
gcloud storage buckets create gs://[YOUR_PROJECT_ID]
2525

2626
You must add Cloud Logging as an owner to the bucket. To do so, add
2727
`cloud-logs@google.com` as an owner to the bucket. See the

run/laravel/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ export ASSET_BUCKET=${PROJECT_ID}-static
150150
* Create a Cloud Storage bucket:
151151
152152
```bash
153-
gsutil mb gs://${ASSET_BUCKET}
153+
gcloud storage buckets create gs://${ASSET_BUCKET}
154154
```
155155
156156
### Setup Artifact Registry
@@ -257,7 +257,7 @@ The configuration is similar to the deployment to Cloud Run, requiring the datab
257257
258258
### Upload static assets
259259
260-
Using the custom `npm` command, you can use `vite` to compile and `gsutil` to copy the assets from your application to Cloud Storage.
260+
Using the custom `npm` command, you can use `vite` to compile and `gcloud storage` to copy the assets from your application to Cloud Storage.
261261
262262
* Upload static assets:
263263
@@ -269,7 +269,7 @@ Using the custom `npm` command, you can use `vite` to compile and `gsutil` to co
269269
270270
* Confirm the output of this operation
271271
272-
* You should see vite returning "N modules transformed", and gsutil returning "Operation completed over N objects"
272+
* You should see vite returning "N modules transformed", and gcloud storage returning "Operation completed over N objects"
273273
274274
### Deploy the service to Cloud Run
275275

run/laravel/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"scripts": {
44
"dev": "vite",
55
"build": "vite build",
6-
"update-static": "vite build && gsutil -m cp -r public/* gs://${ASSET_BUCKET}"
6+
"update-static": "vite build && gcloud storage cp --recursive public/* gs://${ASSET_BUCKET}"
77

88
},
99
"devDependencies": {

0 commit comments

Comments
 (0)