backand-hosting-s3
v1.9.0
Published
Sync a source folder to AWS S3 bucket
Downloads
26
Keywords
Readme
backand-hosting-s3
Sync a local folder to Backand AWS S3 hosting bucket
Require
var gulp = require('gulp'); var backandSync = require('../sync-module');
Set credentials. Credentials will be stored in file
.backand-credentials.json
:gulp.task('sts', function(){ var masterToken = "your master backand token"; var userToken = "your user backand token"; return backandSync.sts(masterToken, userToken); });
Sync folder
./src
gulp.task('dist', function() { var folder = "./src"; return backandSync.dist(folder); });
Syncing is done via local cache file
.awspublish-<bucketname>
. Repeated add/delete of the same file may confuse it. To clean the cache do:gulp.task('clean', function() { return backandSync.clean(); });