use assets group on deploy
This commit is contained in:
+3
-3
@@ -94,9 +94,9 @@ namespace :deploy do
|
|||||||
on roles(fetch(:assets_roles)) do
|
on roles(fetch(:assets_roles)) do
|
||||||
run_locally do
|
run_locally do
|
||||||
with rails_env: fetch(:stage) do
|
with rails_env: fetch(:stage) do
|
||||||
execute "RAILS_ENV=#{fetch(:stage)} DEPLOY=yes bin/rake assets:precompile"
|
execute "RAILS_GROUPS=assets RAILS_ENV=#{fetch(:stage)} DEPLOY=yes bin/rake assets:precompile"
|
||||||
execute "RAILS_ENV=#{fetch(:stage)} DEPLOY=yes bin/rake assets:dedigest"
|
execute "RAILS_GROUPS=assets 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:gzip"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user