jammit-s3 icon indicating copy to clipboard operation
jammit-s3 copied to clipboard

Multiple buckets & disable defaults

Open bradherman opened this issue 13 years ago • 1 comments

I'd like to be able to upload to multiple buckets when running jammit. ie:

s3_bucket: bucket1 s3_upload_files:

  • public/images/**

s3_bucket: bucket2 s3_upload_images:

  • public/css/**

It seems that the gem ignores the first bucket and just uploads everything based on the second s3_bucket specification.

In addition, I'd like to disable the automatic syncing of public/images/* but it looks like even with s3_upload_files set, it still pulls the assets/* and images/** folders into s3. Is there a way to disable this?

bradherman avatar Aug 05 '11 20:08 bradherman

Since I'm doing this within a rake task, a simple workaround is to just run:

system "jammit-s3 -c bucket1.yml" system "jammit-s3 -c bucket2.yml"

However, the default of uploading assets/* and images/* is still duplicating them each in both buckets.

bradherman avatar Aug 05 '11 21:08 bradherman