Skip to content

Commit

Permalink
fix for font install issue
Browse files Browse the repository at this point in the history
  • Loading branch information
briri committed Jun 26, 2024
1 parent 01ff79c commit 4210897
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion config/deploy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@
on roles(:app), wait: 1 do
unless Dir.exist?("#{release_path}/.cache/puppeteer/chrome")
execute "cd #{release_path} && npx puppeteer browsers install chrome"

# Add step to clean up old versions and just always run this on each deploy
# Check to see if we can peg the version if we need to or at least lock it
# to a major version
end
end
end
Expand All @@ -73,10 +77,12 @@
task :font_install do
on roles(:app), wait: 1 do
font_dir = "/dmp/.local/share/fonts/"
Dir.mkdir(font_dir) unless Dir.exist?(font_dir)
FileUtils.mkdir_p(font_dir) unless Dir.exist?(font_dir)
execute "cp #{release_path}/app/assets/fonts/Tinos-*.ttf #{font_dir}"
execute "cp #{release_path}/app/assets/fonts/Roboto-*.ttf #{font_dir}"
execute "fc-cache -f -v"

# See if these can be managed via an rpm
end
end
end
Expand Down

0 comments on commit 4210897

Please sign in to comment.