This commit is contained in:
Nicolas Bally 2018-03-21 09:25:16 +01:00
parent a14fbd727c
commit e56905a22e

View File

@ -1,10 +1,10 @@
if Rails.env.production?
WickedPdf.config = {
:exe_path => "/usr/local/bin/wkhtmltopdf"
:exe_path => "/usr/bin/xvfb-run -- /usr/local/bin/wkhtmltopdf"
}
else
WickedPdf.config = {
:exe_path => "/usr/bin/xvfb-run -- /usr/local/bin/wkhtmltopdf"
:exe_path => "/usr/local/bin/wkhtmltopdf"
}
end