mirror of
https://0xacab.org/sutty/sutty
synced 2024-12-01 09:36:21 +00:00
Merge branch 'issue-16282' into production.panel.sutty.nl
This commit is contained in:
commit
04c487e78d
1 changed files with 9 additions and 5 deletions
|
@ -574,15 +574,19 @@ class Site < ApplicationRecord
|
|||
def install_gems
|
||||
return unless persisted?
|
||||
|
||||
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?
|
||||
|
||||
Site.one_at_a_time.synchronize do
|
||||
deploy_local.bundle
|
||||
touch
|
||||
FileUtils.touch(gemfile_path)
|
||||
end
|
||||
end
|
||||
|
||||
def gem_path
|
||||
@gem_path ||=
|
||||
|
|
Loading…
Reference in a new issue