mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-01 12:31:42 +00:00
fix: esperar para correr bundler varias veces #16282
This commit is contained in:
parent
088b495ed3
commit
f71a35916b
1 changed files with 9 additions and 5 deletions
|
@ -577,15 +577,19 @@ class Site < ApplicationRecord
|
||||||
def install_gems
|
def install_gems
|
||||||
return unless persisted?
|
return unless persisted?
|
||||||
|
|
||||||
|
Site.one_at_a_time.synchronize do
|
||||||
deploy_local = deploys.find_by_type('DeployLocal')
|
deploy_local = deploys.find_by_type('DeployLocal')
|
||||||
deploy_local.git_lfs
|
deploy_local.git_lfs
|
||||||
|
end
|
||||||
|
|
||||||
return unless !gems_installed? || gemfile_updated? || gemfile_lock_updated?
|
return unless !gems_installed? || gemfile_updated? || gemfile_lock_updated?
|
||||||
|
|
||||||
|
Site.one_at_a_time.synchronize do
|
||||||
deploy_local.bundle
|
deploy_local.bundle
|
||||||
touch
|
touch
|
||||||
FileUtils.touch(gemfile_path)
|
FileUtils.touch(gemfile_path)
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
def gem_path
|
def gem_path
|
||||||
@gem_path ||=
|
@gem_path ||=
|
||||||
|
|
Loading…
Reference in a new issue