Created
June 7, 2014 12:38
-
-
Save elnur/957a05baf9d614b89efd to your computer and use it in GitHub Desktop.
Assets Cache Busting in Symfony
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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