资 源 简 介
Summary
This gem accelerates your rails public directory by transparently pushing it out to an edge-cache at deployment-time.
Will allow you to serve assets superfast to all your customers.
Requires that you have an aws account, and sign up for amazon s3 and cloudfront.
Usage
```
require "xlr8/capistrano" # add to your Capfile
require "xlr8/tasks" # add to your Rakefile
Create a RAILS\_ROOT/config/xlr8.yml:
bucket: "my-bucket"
awsaccesskey_id:
awssecretaccess_key:
```
That"s it!
How it Works
As part of your cap deploy, xlr8 will :
package up all your assets
version them
push them to s3
create an edge-cache distribution in amazon cloudfront if possible
update the " ActionController::Base.asset_host" setting in environment.rb to
Your rails install will transparent