mirror of
https://0xacab.org/sutty/sutty
synced 2025-02-22 14:31:48 +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
|
site.path
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# XXX: Ver DeployLocal#bundle
|
||||||
def gems_dir
|
def gems_dir
|
||||||
@gems_dir ||= Rails.root.join('_storage', 'gems', site.name)
|
@gems_dir ||= Rails.root.join('_storage', 'gems', site.name)
|
||||||
end
|
end
|
||||||
|
|
|
@ -92,7 +92,9 @@ class DeployLocal < Deploy
|
||||||
|
|
||||||
def bundle
|
def bundle
|
||||||
if Rails.env.production?
|
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
|
else
|
||||||
run %(bundle install)
|
run %(bundle install)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue