Asset_sync

screenshot of Asset_sync

Synchronises Assets between Rails and S3

Overview

Asset Sync is a powerful tool designed to optimize asset management in Rails applications. By integrating seamlessly with the Rails Asset Pipeline, this gem allows developers to effortlessly synchronize assets to an S3 bucket after precompilation, ensuring that only the required files are uploaded. Originally tailored for Heroku, Asset Sync proves its versatility by functioning well across various platforms, making it a suitable solution for any Rails environment that uses cloud storage.

The latest version introduces enhanced features, dependencies, and settings that improve functionality and efficiency. With particular focus on ease of installation and configuration, Asset Sync streamlines the process of asset synchronization while helping to avoid unnecessary uploads and manage your cloud storage effectively.

Features

  • Automatic Synchronization: Automatically synchronizes your assets to S3 after running bundle exec rake assets:precompile, reducing manual intervention.

  • Selective Uploading: Only uploads necessary files while optionally deleting unused ones, optimizing storage costs and management.

  • Multi-Platform Support: Initially built for Heroku but designed to function effectively on any platform, providing flexibility for developers.

  • Dependency Management: Instead of relying on fog, it now uses fog-core to minimize unnecessary dependencies, streamlining the gem's footprint.

  • Extended Installation Options: Supports faster synchronization with turbo-sprockets for significant reductions in asset precompilation time, although note it will be deprecated in future Rails versions.

  • Custom Configuration: Allows configuration with multiple cloud storage providers, including Google Cloud Storage and Azure Blob Storage, to suit various project needs.

  • HTTPS Compatibility: Provides instructions to set up asset hosting over HTTPS while avoiding common pitfalls with subdomain naming.

  • Non-Default Region Support: Facilitates smooth integration with non-default S3 bucket regions while ensuring ongoing asset availability.