Category Archives: ecommerce

configure S3 in spree, Heroku

1) add gem ‘aws-sdk’ and then bundle install. add to spree.rb located at config/intializers/spree.rb. you don’t want to change anything in this code attachment_config = { s3_credentials: { access_key_id: ENV[‘AWS_ACCESS_KEY_ID’], secret_access_key: ENV[‘AWS_SECRET_ACCESS_KEY’], bucket: ENV[‘S3_BUCKET_NAME’] }, storage: :s3, s3_headers: { “Cache-Control” … Continue reading

Posted in ecommerce, web development | Tagged , , , , , , | Leave a comment