Skip to content

Commit

Permalink
fix ACM config #3
Browse files Browse the repository at this point in the history
  • Loading branch information
lihaitao committed Dec 9, 2018
1 parent b5e3d5b commit 58f3def
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build/upload.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ class UploadQN {
const publicPath = path.join(__dirname, '../public')
const acm = new ACMClient(acmConfig)
const initAcm = async () => {
const content = await acm.getConfig('test-acm', 'DEFAULT_GROUP')
const { qiniu } = JSON.parse(content)
const upload = new UploadQN(qiniu.bucket, qiniu.ak, qiniu.sk)
const content = await acm.getConfig('LeeBlog', 'DEFAULT_GROUP')
const { bucket, ak, sk } = JSON.parse(content).qiniu.static
const upload = new UploadQN(bucket, ak, sk)
upload.doAllFileUpload(publicPath)
acm.close()
}
Expand Down

0 comments on commit 58f3def

Please sign in to comment.