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

fix: esperar para correr bundler varias veces #16282

This commit is contained in:
f 2024-05-15 12:56:46 -03:00
parent 088b495ed3
commit f71a35916b
No known key found for this signature in database

View file

@ -577,14 +577,18 @@ class Site < ApplicationRecord
def install_gems
return unless persisted?
deploy_local = deploys.find_by_type('DeployLocal')
deploy_local.git_lfs
Site.one_at_a_time.synchronize do
deploy_local = deploys.find_by_type('DeployLocal')
deploy_local.git_lfs
end
return unless !gems_installed? || gemfile_updated? || gemfile_lock_updated?
deploy_local.bundle
touch
FileUtils.touch(gemfile_path)
Site.one_at_a_time.synchronize do
deploy_local.bundle
touch
FileUtils.touch(gemfile_path)
end
end
def gem_path