Skip to content

Instantly share code, notes, and snippets.

@elnur
Created June 7, 2014 12:38
Show Gist options
  • Save elnur/957a05baf9d614b89efd to your computer and use it in GitHub Desktop.
Save elnur/957a05baf9d614b89efd to your computer and use it in GitHub Desktop.
Assets Cache Busting in Symfony
before "deploy:finalize_update" do
capifony_pretty_print "--> Update assets version"
run "if [ -f #{shared_path}/app/config/parameters.yml ]; then sed -i.bak 's/\\(assets_version:[[:space:]]*\\)[[:digit:]]*/\\1#{release_name}/' #{shared_path}/app/config/parameters.yml; fi"
capifony_puts_ok
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment