【发布时间】:2019-05-27 16:34:32
【问题描述】:
我在 google-cloud-storage 存储桶上有一个静态站点。
我将我的网站同步到存储桶:
args: ["-m", "-h", "Content-Encoding:gzip", "rsync", "-c", "-r", "./folder", "gs://mysite.com"]
我已在我的云存储桶中设置网站配置:
/index.html
这会导致:
mysite.com/category/index.html
从这里我想删除index.html,所以我在第二行尝试了除了上面的args,如下:
args: ["-h", "Content-Type:text/html", "cp", "./folder/*/index.html", "gs://mysite.com/*"]
但是第二个参数不起作用。
如何编写第二个args,以便将index.html从mysite.com/category/index.html中的URL中删除?
【问题讨论】:
标签: google-cloud-storage rsync cp gsutil