Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Asset sync uploading (almost) all assets to S3 on every deploy, even though nothing has changed

Some assets are kept, but a lot of assets are uploaded every time (amonst others the tiny_mce files, but also static image files) even though I have changed nothing.

I am using Heroku on cedar stack, and v.0.5.4 of the asset sync gem.

Part of the log from Heroku push:

Uploading: assets/logo_na.png
Uploading: assets/icons/woofunction-icons/home_32.png

(Which have not been changed)

Ignoring: assets/application-2b6fe7367c39811f8bae3c83bd39e8bf.js.gz
Ignoring: assets/application-44fd5226ff0852aeecfcda68b9aa755c.css.gz

(These have not been changed either, but are properly ignored.)

This used to work just fine, the problem appeared after i moved the apps to the heroku europe stack. I have also added the turbo-sprockets-rails3 (0.3.6) gem without any apparent difference in what is uploaded.

like image 770
hso Avatar asked Jun 27 '13 07:06

hso


1 Answers

Try updating the asset_sync gem to the latest version. You are currently running 0.5.4 while the head version is 1.0.0 which is probably using an updated version of fog.

Asset syncing with asset_sync/fog has been quite problematic some time ago, I once run with a similar issue: "Sync to S3 always copies all files" using the middleman_sync gem which relies on asset_sync.

like image 88
Nicolas Garnil Avatar answered Oct 22 '22 19:10

Nicolas Garnil