use assets group on deploy

This commit is contained in:
2016-11-30 14:49:46 +01:00
parent bd311ef38e
commit 910a0aadfb
+3 -3
View File
@@ -94,9 +94,9 @@ namespace :deploy do
on roles(fetch(:assets_roles)) do
run_locally do
with rails_env: fetch(:stage) do
execute "RAILS_ENV=#{fetch(:stage)} DEPLOY=yes bin/rake assets:precompile"
execute "RAILS_ENV=#{fetch(:stage)} DEPLOY=yes bin/rake assets:dedigest"
execute "RAILS_ENV=#{fetch(:stage)} DEPLOY=yes bin/rake assets:gzip"
execute "RAILS_GROUPS=assets RAILS_ENV=#{fetch(:stage)} DEPLOY=yes bin/rake assets:precompile"
execute "RAILS_GROUPS=assets RAILS_ENV=#{fetch(:stage)} DEPLOY=yes bin/rake assets:dedigest"
execute "RAILS_GROUPS=assets RAILS_ENV=#{fetch(:stage)} DEPLOY=yes bin/rake assets:gzip"
end
end