Public folder (images, javascript) on Amazon's Cloudfront


#1

Hi,

as the subject says I am currently considering to move all resources
from my app to Cloudfront.
I already googled for some best practices, but haven’t found much.
However, despite that Cloudfront
is quite new, I think that many Rails developers have thought about
doing this.

As always thankful for any tips, tricks and suggestions.


#2

Is there a script to update cloudfront when i update the app on the
production server? I want to keep it synched. I looked at clcurl.pl
seemed overly complicated for what i was looking for.

On Nov 30 2008, 12:22 am, Helmut J. removed_email_address@domain.invalid


#3

Maybe it is interesting for other Rails beginners. The solution is
pretty easy and straight-forward. Just
go to the production environment and there is a line:

Enable serving of images, stylesheets, and javascripts from an asset

server
config.action_controller.asset_host = “http://
assets.example.com

That’s it!


#4

I know it’s a little late in the game, but I had the same thought, and
wrote up a pretty simple plugin to do this for you:

http://code.google.com/p/xlr8/