Rails 3 automatic asset deployment to Amazon CloudFront?

后端 未结 4 1031
礼貌的吻别
礼貌的吻别 2020-12-30 09:19

Is there a gem or method available in Rails 3.1 that can upload assets to amazon cloud front automatically and use those instead of serving locally hosted ones?

4条回答
  •  温柔的废话
    2020-12-30 09:49

    If you use Cloudfronts “Custom origin” option you do not need to upload anything, Cloudfront will fetch the assets from your server when needed. For details of setting this up see:

    http://blog.ertesvag.no/post/10720082458

提交回复
热议问题