Forum: Ruby on Rails Public folder (images, javascript) on Amazon's Cloudfront

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
0abf1be709cf16091ff180542434fd5e?d=identicon&s=25 Helmut Juskewycz (Guest)
on 2008-11-24 12:56
(Received via mailing list)
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.
0abf1be709cf16091ff180542434fd5e?d=identicon&s=25 Helmut Juskewycz (Guest)
on 2008-11-30 09:23
(Received via mailing list)
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!
0a1755d790ef4df6e626f1f6e195cc50?d=identicon&s=25 David Lee (davidslee9)
on 2009-01-24 22:38
(Received via mailing list)
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 Juskewycz <hjuskew...@gmail.com>
54c0c264ac2cd26640d5ec15e2d6711e?d=identicon&s=25 Hemant Bhanoo (Guest)
on 2009-03-04 18:31
(Received via mailing list)
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/
This topic is locked and can not be replied to.