In your environment.rb add the following:

config.action_controller.asset_host = "http://assets.example.com";

Details can be found in the following books:
The Rails Way
Advanced Rails

The code above was taken directly from The Rails Way.

On Mon, Jan 26, 2009 at 5:34 AM, LostyJai <[email protected]> wrote:
>
> I wish to setup an asset server, to reduce the load time and load on
> the server itself.
> How do I set it up so that images are loaded from an asset server,
> while scripts/etc are loaded from the same server as community engine
> (localhost).
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CommunityEngine" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/communityengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to