Created
July 24, 2023 15:33
-
-
Save smedstadc/7036f464e1f69278fe362449aab8a646 to your computer and use it in GitHub Desktop.
wicked pdf workaround for fedora
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
WickedPdf.config ||= {} | |
WickedPdf.config.merge!({}) | |
if Rails.env.development? && ENV["WICKED_PDF_WORKAROUND"] == "fedora" | |
WickedPdf.config.merge!( | |
{ | |
exe_path: File.expand_path( | |
"~/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/wkhtmltopdf-binary-0.12.6.5/bin/wkhtmltopdf_centos_8_amd64" | |
), | |
enable_local_file_access: true | |
} | |
) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment