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

Merge branch 'issue-16282' into production.panel.sutty.nl

This commit is contained in:
f 2024-05-15 12:57:59 -03:00
commit 04c487e78d
No known key found for this signature in database

View file

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