Skip to content

Instantly share code, notes, and snippets.

@odewahn
Created June 19, 2017 13:13
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save odewahn/5ba3f657040374deb883ef7ec7d5ef46 to your computer and use it in GitHub Desktop.
Save odewahn/5ba3f657040374deb883ef7ec7d5ef46 to your computer and use it in GitHub Desktop.

Static site hosting

List buckets

$ gsutil ls
gs://ano-auth-test-bucket/
gs://ano-static-site-bucket/

Upload all files

gsutil cp -r * gs://ano-static-site-bucket/

Make all files readable

gsutil -m acl set -R -a public-read gs://ano-static-site-bucket/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment