Serving static files from google cloud storage?

前端 未结 2 1575
轮回少年
轮回少年 2020-12-10 06:54

I wanted to serve static files stored in google cloud storage for app hosted in app engine. In HTML file, I used



        
2条回答
  •  既然无缘
    2020-12-10 07:37

    I'm not sure how you are uploading your files and why the public read is not set correctly, but you could also change that through the Google Cloud Storage Manager. Simply locate the bucket and the file and click on the Share Publicly checkmark and you'll get the link.

    list of files in the bucket on cloud storage

    Or you can upload that file using the gsutil with public read right away:

    gsutil cp -a public-read custom.css gs://my_backet
    

提交回复
热议问题