Skip to content

Instantly share code, notes, and snippets.

@jakzal
Created November 28, 2011 16:11
Show Gist options
  • Star 12 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save jakzal/1400923 to your computer and use it in GitHub Desktop.
Save jakzal/1400923 to your computer and use it in GitHub Desktop.
Updating assets version before assetic dump (capifony)
namespace :symfony do
namespace :assets do
desc "Updates assets version"
task :update_version do
run "sed -i 's/\\(assets_version: \\)\\(.*\\)$/\\1 #{real_revision}/g' #{latest_release}/app/config/config.yml"
end
end
end
before "symfony:assetic:dump" do
symfony.assets.update_version
end
@cordoval
Copy link

i have not read about assets_version: what it does?

@jakzal
Copy link
Author

jakzal commented Nov 30, 2011

@leftdevel
Copy link

Thanks. I'll use this 'sed ..' command with ant :)

@bacbos
Copy link

bacbos commented Aug 30, 2015

Awesome, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment