5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-07-01 22:16:07 +00:00

limpiar gemas al terminar de instalar

This commit is contained in:
f 2021-12-24 10:08:09 -03:00
parent 36cf199548
commit 8fc7051588
2 changed files with 4 additions and 1 deletions

View file

@ -39,6 +39,7 @@ class Deploy < ApplicationRecord
site.path
end
# XXX: Ver DeployLocal#bundle
def gems_dir
@gems_dir ||= Rails.root.join('_storage', 'gems', site.name)
end

View file

@ -92,7 +92,9 @@ class DeployLocal < Deploy
def bundle
if Rails.env.production?
run %(bundle install --no-cache --path="#{gems_dir}")
# XXX: Desde que ya no compartimos el directorio de gemas, tenemos
# que hacer limpieza después de instalar.
run %(bundle install --no-cache --path="#{gems_dir}" --clean)
else
run %(bundle install)
end