Skip to content

Commit

Permalink
Updated README with CloudFront setup options
Browse files Browse the repository at this point in the history
  • Loading branch information
Kliment Mamykin committed Apr 17, 2011
1 parent d5eb579 commit edb3cd7
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions README.md
Expand Up @@ -84,9 +84,14 @@ Valid permission options are:

## Using CloudFront

To use CloudFront, simply add your CloudFront domain to your environment specific asset host (i.e config/environments/production.rb):
To use CloudFront, simply add the following settings to config/assets.yml:

config.action_controller.asset_host = "http://di8snu3y5lwja.cloudfront.net"
use_cloudfront: on
cloud_dist_id: d3ufgt52562mlv

And add/modify your environment specific asset_host (i.e config/environments/production.rb):

config.action_controller.asset_host = "http://#{Jammit.configuration[:cloud_dist_id]}.cloudfront.net"

This will use the CloudFront domain name for your assets instead of serving them from the (slow) S3 bucket.

Expand Down

0 comments on commit edb3cd7

Please sign in to comment.