Skip to content

Demonstration of storing ActiveStorage blobs in subfolders based on an environment variable

Notifications You must be signed in to change notification settings

mocra/subfolder-rails-activestorage-blobs

Repository files navigation

Isolating Rails blobs in subfolders

This example application is configured to store uploaded ActiveStorage files into subfolders based on a deployment environment variable, such as $HEROKU_APP_NAME.

twin-apps

I've deployed two demonstration apps that show the internal key to demonstrate that the images are stored in different subfolders:

Read me on the blog post.

Files

The configuration files for blobs in subfolders are:

About

Demonstration of storing ActiveStorage blobs in subfolders based on an environment variable

Topics

Resources

Stars

Watchers

Forks