Amazon S3 integration for Spree
Ruby
Pull request Compare This branch is even with jeremyhaile:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
config
lib
spec
.gitignore
LICENSE
README.textile
Rakefile
spree_s3.gemspec

README.textile

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.

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

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]