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

Merge branch 'issue-13022' into panel.sutty.nl

This commit is contained in:
f 2023-04-11 11:55:46 -03:00
commit f78bbae196
2 changed files with 8 additions and 0 deletions

View file

@ -14,6 +14,7 @@ class DeployLocal < Deploy
# Sutty
def deploy(output: false)
return false unless mkdir
return false unless git_lfs(output: output)
return false unless yarn(output: output)
return false unless pnpm(output: output)
return false unless bundle(output: output)
@ -120,6 +121,11 @@ class DeployLocal < Deploy
run 'pnpm install --production', output: output
end
def git_lfs(output: false)
run %(git lfs fetch), output: output
run %(git lfs checkout), output: output
end
def gem(output: false)
run %(gem install bundler --no-document), output: output
end

View file

@ -564,6 +564,8 @@ class Site < ApplicationRecord
def install_gems
return unless persisted?
deploys.find_by_type('DeployLocal').send(:git_lfs)
if !gem_dir? || gemfile_updated? || gemfile_lock_updated?
deploys.find_by_type('DeployLocal').send(:bundle)
touch