Michael Prince

Joined

4,870 Experience
48 Lessons Completed
0 Questions Solved

Activity

Posted in About Importmap rails gem

+1

Posted in How can I display production s3 images in staging?

I have one s3 bucket for production and one for staging. What I want to be able to do is display production images when on staging (or development), but if I update an image while on staging/development have that not affect production. That way I can pull a copy of my production db and load it to staging and have staging not full of broken images.

I came across this article for migrating from Paperclip which had an interesting idea to achieve this, but it's not fleshed out enough for me to follow. Any help would be appreciated.

Hi Chris, thanks for this video and the one on migrating from Paperclip. Can you address how we might setup ActiveStorage for multiple environments? I have one s3 bucket for production and one for staging. What I want to be able to do is display production images when on staging (or development), but if I update an image while on staging/development have that not affect production. That way I can pull a copy of my production db and load it to staging and have staging not full of broken images. I came across this article for migrating from Paperclip which had an interesting idea to achieve this, but it's not fleshed out enough for me to follow. Any help would be appreciated.

Thanks,

Mike

Screencast tutorials to help you learn Ruby on Rails, Javascript, Hotwire, Turbo, Stimulus.js, PostgreSQL, MySQL, Ubuntu, and more.

© 2024 GoRails, LLC. All rights reserved.