mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-16 18:46:22 +00:00
usar una caché común para yarn
This commit is contained in:
parent
380d80ded4
commit
4e461e7af6
1 changed files with 6 additions and 1 deletions
|
@ -62,10 +62,15 @@ class DeployLocal < Deploy
|
||||||
'AIRBRAKE_PROJECT_ID' => site.id.to_s,
|
'AIRBRAKE_PROJECT_ID' => site.id.to_s,
|
||||||
'AIRBRAKE_PROJECT_KEY' => site.airbrake_api_key,
|
'AIRBRAKE_PROJECT_KEY' => site.airbrake_api_key,
|
||||||
'JEKYLL_ENV' => Rails.env,
|
'JEKYLL_ENV' => Rails.env,
|
||||||
'LANG' => ENV['LANG']
|
'LANG' => ENV['LANG'],
|
||||||
|
'YARN_CACHE_FOLDER' => yarn_cache_dir
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def yarn_cache_dir
|
||||||
|
Rails.root.join('_yarn_cache')
|
||||||
|
end
|
||||||
|
|
||||||
def yarn_lock
|
def yarn_lock
|
||||||
File.join(site.path, 'yarn.lock')
|
File.join(site.path, 'yarn.lock')
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue