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

fix: no correr git lfs al cargar el sitio

es muy lento
This commit is contained in:
f 2024-05-15 17:26:14 -03:00
parent e266b88866
commit 5e99cb4758
No known key found for this signature in database

View file

@ -576,13 +576,9 @@ class Site < ApplicationRecord
# * El archivo Gemfile.lock se modificó # * El archivo Gemfile.lock se modificó
def install_gems def install_gems
return unless persisted? return unless persisted?
deploy_local = deploys.find_by_type('DeployLocal')
deploy_local.git_lfs
return unless (!gems_installed? || theme_path.blank?) || gemfile_updated? || gemfile_lock_updated? return unless (!gems_installed? || theme_path.blank?) || gemfile_updated? || gemfile_lock_updated?
deploy_local.bundle deploys.find_by_type('DeployLocal').bundle
touch touch
FileUtils.touch(gemfile_path) FileUtils.touch(gemfile_path)
end end