1
0
mirror of https://github.com/kremalicious/blog.git synced 2024-12-23 01:30:01 +01:00

make sure everything ends up in bucket root

This commit is contained in:
Matthias Kretschmann 2016-04-15 23:42:25 +02:00
parent 44e4b9ec6c
commit 08abf516d0
Signed by: m
GPG Key ID: BD3C1F3EDD7831FC

View File

@ -370,7 +370,7 @@ gulp.task('deploy', function() {
"region": S3REGION
});
return gulp.src(DIST + '**/*')
return gulp.src(DIST + '/**/*')
.pipe($.awspublishRouter({
cache: {
// cache for 5 minutes by default
@ -398,6 +398,10 @@ gulp.task('deploy', function() {
"^.+$": "$&"
}
}))
// make sure everything goes to the root '/'
.pipe($.rename(function (path) {
path.dirname = S3PATH + path.dirname;
}))
.pipe(parallelize(publisher.publish({}, 'force'), 10))
.pipe(publisher.sync()) // delete files in bucket that are not in local folder
.pipe($.awspublish.reporter({