Helmut Juskewycz
2008-Nov-24 11:56 UTC
Public folder (images, javascript) on Amazon''s Cloudfront
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. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Helmut Juskewycz
2008-Nov-30 08:22 UTC
Re: Public folder (images, javascript) on Amazon''s Cloudfront
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! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
davidslee9
2009-Jan-24 21:37 UTC
Re: Public folder (images, javascript) on Amazon''s Cloudfront
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...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> 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!--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Hemant Bhanoo
2009-Mar-04 17:27 UTC
Re: Public folder (images, javascript) on Amazon''s Cloudfront
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/ On Jan 24, 1:37 pm, davidslee9 <davidsl...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> 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...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > wrote: > > > 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!--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---