Home > spree-s3

spree-s3

Spree-s3 is a project mainly written in ..., based on the MIT license.

Amazon S3 integration for Spree

h1. Spree + Amazon S3

Amazon S3 integration for your Spree (v0.30.1) store, using the aws-s3 gem. Normally, Spree saves all image assets to disk. This extension will pass all product and taxon assets along to your S3 bucket instead.

h3. Installation

Add to project's Gemfile:

gem 'spree_s3', '>=0.1', :git => 'git://github.com/thoughtful/spree-s3.git'

Run from project's root:

bundle install
rake spree_s3:install

h3. Configuration

Create config/s3.yml within your Spree site.

production:
    key: [your access key]
    secret: [your access secret]
    bucket: [your s3 bucket name]

Or use config vars. For Heroku, setting these vars can be as simple as

$ cd mystore
$ heroku config:add S3_KEY=[your access key] S3_SECRET=[your access secret] S3_BUCKET=[your s3 bucket name]
Previous:Book