Syncing bundle_fu assets to s3 for Cloudfront April 2, 2009
Posted by John Dewey in Amazon, CDN, Rake, Vlad.trackback
I wanted to automatically upload my bundle_fu assets to Amazon’s s3, and use their Cloudfront CDN for SnGs. I came up with the following rake task, which can be hooked into Vlad.
It’s as simple as adding the following to production.rb, and running the rake task ‘cloud:upload’.
ActionController::Base.asset_host = "cloudfront_url"
I always enjoy learning how other people employ Amazon S3 and CloudFront. You can check out my very own tool CloudBerry Explorer that helps to manage S3 and
CloudFront. It is a freeware. http://cloudberrylab.com/