rumblelabs/asset_sync — Issue #45: Assets compiled twice on server
Author: masterkain
Created: 2012-02-20 23:49:48+00:00
State: open

Hello,
Rails 3.2.1, Capistrano, RVM, asset_sync (master), EC2

In order for asset_sync to upload something to S3 I had to write a Rake task as pointed out in another ticket:

```
Rake::Task["assets:precompile:nondigest"].enhance do
Rake::Task["assets:environment"].invoke if Rake::Task.task_defined?("assets:environment")
AssetSync.sync
end
```
The problem is that I'm seeing that during the deploy the server compiles the assets two times.

`Capfile` contains `load 'deploy/assets'`, digest are enabled.

Maybe related:
https://github.com/rails/rails/pull/3192