Sha256: 44bfda1aa705c32975e8811c382f9b5a4fc2687926631a50fc62eafff9e72a21
Contents?: true
Size: 1.62 KB
Versions: 4
Compression:
Stored size: 1.62 KB
Contents
[![Build Status](https://travis-ci.com/AlchemyCMS/alchemy-dragonfly-s3.svg?branch=alchemy-4)](https://travis-ci.com/AlchemyCMS/alchemy-dragonfly-s3) # AlchemyCMS AWS S3 Adds support for file attachments and rendered Alchemy thumbnails stored on Amazon AWS S3. ## Alchemy Version This branch works with Alchemy 4 only. - For a Alchemy 5 compatible version use the `master` branch. - For a Alchemy 3.6 compatible version use the `alchemy-3` branch. ## Installation Add this line to your application's Gemfile: ```ruby gem 'alchemy-dragonfly-s3', github: 'AlchemyCMS/alchemy-dragonfly-s3', branch: 'alchemy-4' ``` And then execute: ``` $ bundle install ``` Install the picture thumbs migration ``` $ bin/rake alchemy_dragonfly_s3:install:migrations $ bin/rake db:migrate ``` ## Setup Configure a S3 datastore for Dragonfly ```ruby # config/initializers/dragonfly require "dragonfly/s3_data_store" Dragonfly.app(:alchemy_pictures).configure do plugin :imagemagick plugin :svg datastore :s3, bucket_name: ENV.fetch("ALCHEMY_S3_BUCKET_NAME"), access_key_id: ENV.fetch("ALCHEMY_S3_ACCESS_KEY_ID"), secret_access_key: ENV.fetch("ALCHEMY_S3_SECRET_ACCESS_KEY"), region: ENV.fetch("ALCHEMY_S3_REGION") end Dragonfly.app(:alchemy_attachments).configure do datastore :s3, bucket_name: ENV.fetch("ALCHEMY_S3_BUCKET_NAME"), access_key_id: ENV.fetch("ALCHEMY_S3_ACCESS_KEY_ID"), secret_access_key: ENV.fetch("ALCHEMY_S3_SECRET_ACCESS_KEY"), region: ENV.fetch("ALCHEMY_S3_REGION") end ``` ## License The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
alchemy-dragonfly-s3-4.0.5 | README.md |
alchemy-dragonfly-s3-4.0.4 | README.md |
alchemy-dragonfly-s3-4.0.3 | README.md |
alchemy-dragonfly-s3-4.0.2 | README.md |