Yep we've got it working in Rails 4
You need to do this:
#GemFile (might need aws_sdk gem too)
gem "asset_sync", "~> 1.0.0"
#config/environments/production.rb
config.action_controller.asset_host = "//#{ENV['FOG_DIRECTORY']}.s3.amazonaws.com"
$-> rake assets:precompile RAILS_ENV=production
We use Figaro to store ENV
vars locally, here's what we got:
#config/application.yml
FOG_DIRECTORY: "***BUCKET_NAME****"
FOG_PROVIDER: "AWS"
FOG_REGION: "eu-west-1"
ASSET_SYNC_GZIP_COMPRESSION: "true"
ASSET_SYNC_MANIFEST: "true"
ASSET_SYNC_EXISTING_REMOTE_FILES: "delete"