GeistHaus
log in · sign up

Rails 4 and Paperclip with S3 + Cloudfront

mattsencenbaugh.com

It’s been over two years since I have implemented Paperclip, the awesome image attachment gem, into a Rails app. The basic setup is still very easy and clean to do, as is the initial setup to get S3 storage working. But what’s not well documented is how to use Cloudfront to serve up your image attachments rather than pulling them from S3. Thanks to this helpful answer on stack overflow, and a little digging into the code of Paperclip itself, it turns out to be trivial to implement.

0 pages link to this URL

No pages have linked to this URL yet.