All threads / How do I sync ActiveStorage files between development (local) and production (Amazon S3)?

Ask A Question

Notifications

You’re not receiving notifications from this thread.

How do I sync ActiveStorage files between development (local) and production (Amazon S3)?

Guilherme Taschetto asked in Rails

I have a Rails 6 app on Heroku with a Postgresql database and ActiveStorage on Amazon S3.

Sometimes I need to sync my local db with production data to make debug easier. And it works great. I want to do the same with ActiveStorage files.

Is there a way to download production files, which is hosted on an Amazon S3 bucket, to my local machine? Preferably an incremental download.

I searched across the web and found nothing about it. :-(

Thank you!

I've been doing and working with the Java programming language for a long time, and I just decided to start my own small business focused on Internet work. You'll also need your own personal software and a high-quality website to run a full-fledged business. But here's the rub: who's going to do it? I could do it myself, but it wouldn't be as effective and would take too long. And I used this site to hire javascript developer. They assisted me in finding personnel that were specifically tailored to my demands and specifications. They have a large database of workers that are available for hiring.

Join the discussion

Want to stay up-to-date with Ruby on Rails?

Join 54,645+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.

    logo Created with Sketch.

    Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

    © 2021 GoRails, LLC. All rights reserved.