From 4e461e7af6f648fc4b5d91437160ec363e5cdc8b Mon Sep 17 00:00:00 2001 From: f Date: Thu, 9 Dec 2021 10:42:03 -0300 Subject: [PATCH] =?UTF-8?q?usar=20una=20cach=C3=A9=20com=C3=BAn=20para=20y?= =?UTF-8?q?arn?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/models/deploy_local.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/models/deploy_local.rb b/app/models/deploy_local.rb index fb1142b2..f9225f39 100644 --- a/app/models/deploy_local.rb +++ b/app/models/deploy_local.rb @@ -62,10 +62,15 @@ class DeployLocal < Deploy 'AIRBRAKE_PROJECT_ID' => site.id.to_s, 'AIRBRAKE_PROJECT_KEY' => site.airbrake_api_key, 'JEKYLL_ENV' => Rails.env, - 'LANG' => ENV['LANG'] + 'LANG' => ENV['LANG'], + 'YARN_CACHE_FOLDER' => yarn_cache_dir } end + def yarn_cache_dir + Rails.root.join('_yarn_cache') + end + def yarn_lock File.join(site.path, 'yarn.lock') end