Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add instruction to configure s3 for ActiveStorage #8909

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 6 additions & 1 deletion guides/content/developer/customization/s3_storage.md
Expand Up @@ -8,7 +8,7 @@ section: customization
Currently the Spree backend does not give you the option anymore to configure s3 for image storage.
This guide covers how you can use S3 for storing assets in Spree.

### How to use S3
### How to use S3 with Paperclip

Start with adding AWS-SDK to your gemfile with: `gem 'aws-sdk'`, then install the gem by running `bundle install`.

Expand Down Expand Up @@ -48,3 +48,8 @@ end

```
Note that I use the `url: ":s3_domain_url"` setting, this enabled the DNS lookup for your images without specifying the specific zone endpoint. You need to use a bucket name that makes a valid subdomain. So do not use dots if you are planning on using the DNS lookup config.

### How to use S3 with ActiveStorage

We are in the process of migration Spree to ActiveStorage, if you use ActiveStorage here is nice official guide how to implement it with S3.
(https://guides.rubyonrails.org/active_storage_overview.html)