mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-16 14:31:42 +00:00
limpiar gemas al terminar de instalar
This commit is contained in:
parent
36cf199548
commit
8fc7051588
2 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue