Skip to content

Instantly share code, notes, and snippets.

@smedstadc
Created July 24, 2023 15:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save smedstadc/7036f464e1f69278fe362449aab8a646 to your computer and use it in GitHub Desktop.
Save smedstadc/7036f464e1f69278fe362449aab8a646 to your computer and use it in GitHub Desktop.
wicked pdf workaround for fedora
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