Skip to content

Instantly share code, notes, and snippets.

@pgodel
Forked from jakzal/deploy.rb
Created November 28, 2011 16:15
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pgodel/1400934 to your computer and use it in GitHub Desktop.
Save pgodel/1400934 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment