当我在终端中背对背运行命令时,它第二次不同步。太好了!不应该这样 但是,如果我运行构建过程并以aws s3 sync编程方式背靠背运行,它将两次同步所有文件,就好像我的构建过程第二次更改了某些内容一样。
无法弄清楚会发生什么。有任何想法吗?
我的构建过程基本上是pug source/ --out static-site/与stylus -c styles/ --out static-site/styles/
我希望能够将git存储库同步到AWS S3进行备份。此外,我希望公众能够git clone备份。我的步骤是:
s3cmd mb s3://lktesting
git update-server-info
s3cmd -P sync .git/ s3://lktesting
s3cmd ws-create s3://lktesting
s3cmd ws-info s3://lktesting
Run Code Online (Sandbox Code Playgroud)
我以为这曾经有用,但现在我得到了:
git clone http://lktesting.s3-website-ap-southeast-1.amazonaws.com/
Cloning into 'lktesting.s3-website-ap-southeast-1.amazonaws.com'...
error: The requested URL returned error: 403 Forbidden (curl_result = 22, http_code = 403, sha1 = bf866b95d9517ea38e213740cead5cf1c313f5aa)
Checking connectivity... done.
Run Code Online (Sandbox Code Playgroud)
有人知道我在想什么吗?