adamburmister / morning_glory

Manage deployments of Rails assets to the Amazon S3/Cloudfront CDN
MIT License
32 stars 12 forks source link

Upload assets only when changed #3

Open jgarber opened 14 years ago

jgarber commented 14 years ago

Wouldn't it be great if you didn't have to upload all your assets to S3 every time you deploy, even when nothing changed? I'm thinking you could copy and prepare all the assets as usual, but then MD5 hash what you're about to upload and see if it's the same as what was previously uploaded. The hash could even replace the REV number, I imagine.

adamburmister commented 14 years ago

Yes, excellent thought. I'll try to implement this when I get some time.