diff --git a/config/deploy.rb b/config/deploy.rb index a59f717a..1fe4906c 100644 --- a/config/deploy.rb +++ b/config/deploy.rb @@ -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