Sync a local folder to Backand AWS S3 hosting bucket
JavaScript
Latest commit b65911b Dec 18, 2016 @kornatzky kornatzky 1.9.0
Permalink
Failed to load latest commit information.
.gitignore
LICENSE
README.md
backand_sync_s3.js
config.js
package.json

README.md

backand-hosting-s3

Sync a local folder to Backand AWS S3 hosting bucket

  1. Require

    var gulp = require('gulp');
    var backandSync = require('../sync-module');
    
  2. 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);
    });
    
  3. Sync folder ./src

    gulp.task('dist', function() {   
        var folder = "./src";
        return backandSync.dist(folder);
    });
    
  4. 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();
    });