... | ... | @@ -16,7 +16,11 @@ Notes: |
|
|
|
|
|
gsutil -m cp -Rzv mathjax gs://mathjax-cdn/
|
|
|
|
|
|
This also works within google storage, i.e., `gsutil cp gs://bucket1/file1 gs://bucket2/`
|
|
|
This also works within GCS, i.e., bucket to bucket. Note that metadata isn't preserved by default (ACLs etc); use `-p` option to preserve them (*warning*: this incurs higher costs).
|
|
|
|
|
|
`gsutil -m cp -Rp gs://bucket1/file1 gs://bucket2/`
|
|
|
|
|
|
(You'll still need to set the CORS for each bucket though; see below.)
|
|
|
|
|
|
### make bucket public
|
|
|
|
... | ... | @@ -88,7 +92,13 @@ Well, it didn't happen. So we're good. |
|
|
|
|
|
### Logging
|
|
|
|
|
|
For logging, follow https://developers.google.com/storage/docs/gsutil/commands/logging
|
|
|
Another one time task. Instructions are at https://developers.google.com/storage/docs/gsutil/commands/logging
|
|
|
|
|
|
### CNAME
|
|
|
|
|
|
To use a CNAME for a bucket, the bucket needs to be named like the CNAME, see https://developers.google.com/storage/docs/reference-uris#cname.
|
|
|
|
|
|
You also need to verify domain ownership; see https://support.google.com/webmasters/answer/35179?hl=en.
|
|
|
|
|
|
## TODO
|
|
|
|
... | ... | @@ -97,6 +107,4 @@ For logging, follow https://developers.google.com/storage/docs/gsutil/commands/l |
|
|
* A simple test: switch mathjax.org over to the origin. user browsershots/browserstack etc to check rendering across IE, FF, Chrome, Safari.
|
|
|
* mimetype [non-vital]
|
|
|
* write script to `curl -I` all woff and otf files, compare header.
|
|
|
|
|
|
* swich over to new container `mathjax` (no idea why mathjax-cdn was chosen the first time around...)
|
|
|
* document log analysis |