diff --git a/app/models/deploy_local.rb b/app/models/deploy_local.rb index 88b84930..5bee9ff5 100644 --- a/app/models/deploy_local.rb +++ b/app/models/deploy_local.rb @@ -92,6 +92,11 @@ class DeployLocal < Deploy def bundle run %(bundle install --no-cache --path="#{gems_dir}") + + # Eliminar archivos que no se usan + Dir.glob("#{gems_dir}/ruby/2.7.0/{cache/*,gems/*/{spec,test,ext,vendor}}").each do |dir| + FileUtils.rm_rf(dir) + end end def jekyll_build