mirror of
https://github.com/kremalicious/blog.git
synced 2024-11-26 20:01:24 +01:00
make sure everything ends up in bucket root
This commit is contained in:
parent
44e4b9ec6c
commit
08abf516d0
@ -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({
|
||||
|
Loading…
Reference in New Issue
Block a user