rumblelabs/asset_sync — Issue #41: Works with Rails 3.2.0?
Author: manuelmeurer
Created: 2012-01-22 13:57:53+00:00
State: open

I just upgraded to Rails 3.2.0 and asset_sync 0.2.5 and it doesn't seem to work.
I followed the upgrade instructions in the Readme and everything went fine, but when I deploy with Capistrano, the assets are not uploaded to S3.

This is my `config/initializers/asset_sync.rb`:

```ruby
AssetSync.configure do |config|
config.fog_provider = 'AWS'
config.aws_access_key_id = AppConfig.aws[:key]
config.aws_secret_access_key = AppConfig.aws[:secret]
config.fog_directory = AppConfig.aws[:bucket]

# Increase upload performance by configuring your region
config.fog_region = AppConfig.aws[:region]

# Don't delete files from the store
config.existing_remote_files = 'delete'

# Automatically replace files with their equivalent gzip compressed version
config.gzip_compression = true

# Use the Rails generated 'manifest.yml' file to produce the list of files to
# upload instead of searching the assets directory.
# config.manifest = true

# Fail silently. Useful for environments such as Heroku
# config.fail_silently = true
end
```

and my `lib/tasks/asset_sync.rake`:

```ruby
Rake::Task['assets:precompile'].enhance do
AssetSync.sync
end
````

When I call `AssetSync.sync` from the Rails console on production after deploy, it works as expected and the assets are uploaded.