AssetSync / asset_sync

Synchronises Assets between Rails and S3
1.88k stars 346 forks source link

Recommendation for cleaning up local assets after upload? #433

Open f1sherman opened 1 year ago

f1sherman commented 1 year ago

I searched the documentation and issues in this repo and couldn't find an answer to this, my apologies if I missed something.

After assets are uploaded to the CDN, can they be deleted from the local Rails app? We're deploying via Docker and it would help greatly if we didn't need to include the assets in the Docker image. Do we need to keep the manifest-*.json? I'm sure someone has solved this, just looking for some guidance. Thank you!

PikachuEXE commented 1 year ago

manifest file probably still needed to generate asset URLs But I guess with proper setup the local asset files can be excluded? Test on different environment first of course