首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > 其他 > 加快铁路公共目录主机使用S3和CloudFront

加快铁路公共目录主机使用S3和CloudFront

  • 资源大小:9.00 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:0次
  • 资源积分:1积分
  • 标      签: s3 rails Public cloudfront

资 源 简 介

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
VIP VIP
0.202476s