Configure Asset Storage
Asset storage configuration determines where product images, content images, admin uploads, etc are stored.
The configuration created here is passed through to the Dragonfly app. Full documentation on Dragonfly storage can be found at the official Dragonfly documentation
your_app/config/initializers/workarea.rb:
Workarea.configure do |config|
# Store assets on the local filesystem (default)
config.asset_store = :file_system, {
root_path: '/tmp/workarea',
server_root: '/tmp/workarea'
}
# Store assets on S3
# config.asset_store = :s3, {
# bucket_name: 'XXXX',
# access_key_id: 'XXXX',
# secret_access_key: 'XXXX'
# }
end
Help Us Improve this Doc
Was this helpful? Open a GitHub issue to report a problem with this doc, suggest an improvement, or otherwise provide feedback. Thanks!