1
0
mirror of https://github.com/bigchaindb/site.git synced 2024-11-22 01:36:55 +01:00

prefix all S3 files with '/'

This commit is contained in:
Matthias Kretschmann 2018-01-10 17:55:18 -02:00
parent d16ef5e4ec
commit bc756270c7
Signed by: m
GPG Key ID: 606EEEF3C479A91F

View File

@ -445,6 +445,10 @@ export const s3 = () => {
"^.+$": "$&"
}
}))
// Make sure everything goes to the root '/'
.pipe($.rename(path => {
path.dirname = '/' + path.dirname
}))
.pipe(parallelize(publisher.publish(), 100))
.pipe(publisher.sync()) // delete files in bucket that are not in local folder
.pipe($.awspublish.reporter({