Skip to content

Latest commit

 

History

History
22 lines (20 loc) · 432 Bytes

README.md

File metadata and controls

22 lines (20 loc) · 432 Bytes

AWS S3 asset uploader

for putting assets on s3

var Sync = require('s3-asset-uploader').S3sync
var config =  {
    "key": "<key>"
  , "secret": "<secret>"
  , "bucket": "<bucket-name>"
  , "cloudfront": "<cf-domain>"
}

new Sync(config, {
    path: './public'
  , prefix: '/assets'
  , ignorePath: './public/js/vendor'
  , digest: 'config/asset-map.json'
  , complete: function () {
      console.log('done')
    }
})