jacquescrocker / jammit-s3

Extensions so you can use jammit with s3/cloudfront for your Rails app
http://documentcloud.github.com/jammit/
MIT License
125 stars 31 forks source link

Multiple buckets & disable defaults #23

Open bradherman opened 13 years ago

bradherman commented 13 years ago

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

s3_bucket: bucket1 s3_upload_files:

s3_bucket: bucket2 s3_upload_images:

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 commented 13 years ago

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.