Menu

Post image 1
Post image 2
Post image 3
1 / 3
0

Using MinIO with Rails

DEV Community·Guilherme Yamakawa de Oliveira·about 1 month ago
#Ve1kYVM1
#rails#ruby#minio#s3#fullscreen#storage
Reading 0:00
15s threshold

I'm on a project where the file upload setup uses Active Storage with Amazon S3. But there's no configuration for me to download files from S3 and use them in development. When I looked at config/storage.yml I saw the following: local : service : Disk root : <%= Rails.root.join("storage") %> Enter fullscreen mode Exit fullscreen mode I figured it would be simple, just bring everything inside the S3 Bucket into the app's app/storage folder. I downloaded the AWS CLI and set it up with my credentials. Then I synced the S3 files into my app/storage folder: $ aws s3 sync s3://bucket-name ~/Projects/selected-project/storage Enter fullscreen mode Exit fullscreen mode Started the app and it didn't work 🙄. In ActiveStorage, when the configured service is Disk, after the blob generates the key, the file is saved inside two folders and then the blob key.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More