Last active
February 18, 2016 05:36
-
-
Save arion/d1afafbe065d7d669ef9 to your computer and use it in GitHub Desktop.
Clear assets for update I18n-js cache
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
namespace :deploy do | |
desc 'Clobber expired assets' | |
task clobber_assets: [:set_rails_env] do | |
on release_roles(fetch(:assets_roles)) do | |
within release_path do | |
with rails_env: fetch(:rails_env) do | |
execute :rake, "assets:clobber" | |
end | |
end | |
end | |
end | |
end | |
# Clear assets for update I18n-js cache | |
before 'deploy:compile_assets', 'deploy:clobber_assets' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment