Provides classes for storing Alchemy pictures and file attachments on Amazon AWS S3.
This branch works with Alchemy 6.0 and above.
5.2-stable
branch.alchemy-5
branch.alchemy-4
branch.alchemy-3
branch.Add this line to your application's Gemfile:
gem 'alchemy-dragonfly-s3', github: 'AlchemyCMS/alchemy-dragonfly-s3'
And then execute:
$ bundle install
Configure a S3 datastore for Dragonfly
# config/initializers/dragonfly
require "dragonfly/s3_data_store"
Rails.application.credentials.aws.tap do |aws_config|
Dragonfly.app(:alchemy_pictures).configure do
plugin :imagemagick
plugin :svg
secret: Rails.application.credentials.secret_key_base
datastore :s3, aws_config
end
Dragonfly.app(:alchemy_attachments).configure do
datastore :s3, aws_config
end
end
The gem is available as open source under the terms of the MIT License.