mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-15 17:11:42 +00:00
fix: actualizar la fecha del gemfile
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
This commit is contained in:
parent
bd3daaf8b8
commit
65011fb804
1 changed files with 6 additions and 1 deletions
|
@ -568,6 +568,7 @@ class Site < ApplicationRecord
|
|||
if !gems_installed? || gemfile_updated? || gemfile_lock_updated?
|
||||
deploy_local.bundle
|
||||
touch
|
||||
File.touch(gemfile_path)
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -588,7 +589,11 @@ class Site < ApplicationRecord
|
|||
|
||||
# Detecta si el Gemfile fue modificado
|
||||
def gemfile_updated?
|
||||
updated_at < File.mtime(File.join(path, 'Gemfile'))
|
||||
updated_at < File.mtime(gemfile_path)
|
||||
end
|
||||
|
||||
def gemfile_path
|
||||
@gemfile_path ||= File.join(path, 'Gemfile')
|
||||
end
|
||||
|
||||
# @return [String]
|
||||
|
|
Loading…
Reference in a new issue