rumblelabs/asset_sync — Issue #27: refreshing assets within cloudfront
Author: kbaum
Created: 2011-11-23 21:11:15+00:00
State: open

I made a change to my css and ran:

RAILS_GROUP=assets RAILS_ENV=development bundle exec rake assets:precompile --trace

I don't see any output of it uploading anything new.

/Users/karl/.rvm/rubies/ruby-1.9.2-p290/bin/ruby
/Users/karl/.rvm/gems/ruby-1.9.2-p290@viewthespace/bin/rake
assets:precompile:all RAILS_ENV=development RAILS_GROUPS=assets --trace
rake/gempackagetask is deprecated. Use rubygems/package_task instead
rake/rdoctask is deprecated. Use rdoc/task instead (in RDoc 2.4.2+)
** Invoke assets:precompile:all (first_time)
** Invoke add_assets_precompile_environment_var (first_time)
** Execute add_assets_precompile_environment_var
adding assets precompile env variable
** Execute assets:precompile:all
** Invoke assets:precompile:primary (first_time)
** Invoke assets:environment (first_time)
** Execute assets:environment
** Invoke environment (first_time)
** Invoke disable_rails_admin_initializer (first_time)
** Execute disable_rails_admin_initializer
** Execute environment
** Invoke tmp:cache:clear (first_time)
** Execute tmp:cache:clear
** Execute assets:precompile:primary
** Invoke assets:environment (first_time)
** Execute assets:environment
** Invoke environment (first_time)
** Invoke disable_rails_admin_initializer (first_time)
** Execute disable_rails_admin_initializer
** Execute environment
Using: Directory Search of
/Users/karl/workspace/viewthespace/public/assets

And when i look at the application.css, it is the older version still.

So i have two questions:

1) Why didn't it upload the new version?
2) Even if it did upload the version, how would it get refreshed within amazon cloudfront?

thx!