Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

第二次运行 upload 没有任何效果 #147

Closed
FrankFang opened this issue Dec 18, 2017 · 8 comments
Closed

第二次运行 upload 没有任何效果 #147

FrankFang opened this issue Dec 18, 2017 · 8 comments

Comments

@FrankFang
Copy link

$ bin/qshell/qshell-darwin-x64 qupload2 -src-dir=./public -bucket=xxx -key-prefix=cdn/
上传成功
$ touch ./public/newfile1.js
$ bin/qshell/qshell-darwin-x64 qupload2 -src-dir=./public -bucket=xxx -key-prefix=cdn/
再次运行 upload,发现 newfile1.js 根本没有上传

请问怎么破?

@FrankFang
Copy link
Author

我现在的解法是每次运行 bin/qshell/qshell-darwin-x64 前,运行一下

rm -rf ~/.qshell/qupload/

清除缓存

@jemygraw
Copy link
Contributor

配置文件里面加上两个参数

"rescan_local" : true
"overwrite" : true

@FrankFang
Copy link
Author

那么这个缓存 ~/.qshell/qupload/ 的用途是什么?

@jemygraw
Copy link
Contributor

jemygraw commented Jan 2, 2018

跳过已经上传成功的文件(在本地没有变化的情况下)不上传。

@FrankFang
Copy link
Author

根据一楼的测试结果,好像跳过了没有上传过的文件(./public/newfile1.js)呢
这是bug吗?

@jemygraw
Copy link
Contributor

jemygraw commented Jan 5, 2018

@FrankFang 不可能

@FrankFang
Copy link
Author

一楼的测试结果是在 macos 10.13 上发生的。

@jemygraw
Copy link
Contributor

jemygraw commented Jan 8, 2018

加两个选项 -rescan-local -overwrite,然后就是注意cdn缓存。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants