Skip to content

backand/backand-hosting-s3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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();
     });
    

About

Sync a local folder to Backand AWS S3 hosting bucket

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •