0.01
No commit activity in last 3 years
No release in over 3 years
Simple way to syncronise your Rails 4 assets with an AWS S3 Bucket.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 4.0
 Project Readme

S3 Asset Sync¶ ↑

This gem provides a simple way of syncronizing your Rails 4 assets with an AWS S3 Bucket.

Installation¶ ↑

gem 's3_asset_sync'

Configuration¶ ↑

Run the following command to generate a configuration file in your Rails /config/initializers folder.

rake s3_asset_sync:setup

Edit that file and replace the default values with your own AWS details.

Usage¶ ↑

By default, assets will be syncronized automatically after precompilation:

rake assets:precompile

If this is not the desired behaviour then simply edit the configuration value as below:

Rails.application.config.s3_asset_sync.run_after_precompile = false

To manually syncronize assets run:

rake assets:sync_to_s3

Deleting Assets¶ ↑

Expired assets won’t be automatically removed from S3 as some nodes within a load balanced setup may temporarily require older assets. To delete expired assets from S3 run:

rake assets:purge_s3