diff --git a/app/models/deploy_local.rb b/app/models/deploy_local.rb index 4f8744f3..b7017018 100644 --- a/app/models/deploy_local.rb +++ b/app/models/deploy_local.rb @@ -13,10 +13,12 @@ class DeployLocal < Deploy end def bundle(output: false) - # XXX: Desde que ya no compartimos el directorio de gemas, tenemos - # que hacer limpieza después de instalar. - - run %(bundle install #{'--deployment' if site.gemfile_lock_path?} --no-cache --path="#{site.bundle_path}" --clean --without test development), output: output + run %(bundle config set --local clean 'true'), output: output + run %(bundle config set --local deployment 'true'), output: output if site.gemfile_lock_path? + run %(bundle config set --local path '#{gems_dir}'), output: output + run %(bundle config set --local without 'test development'), output: output + run %(bundle config set --local cache_all 'false'), output: output + run %(bundle install), output: output end # Realizamos la construcción del sitio usando Jekyll y un entorno