-
-
Save pgodel/1400934 to your computer and use it in GitHub Desktop.
Updating assets version before assetic dump (capifony)
This file contains hidden or 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
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