From e56905a22e98ef989eca75793747247d4f63f7c5 Mon Sep 17 00:00:00 2001 From: Nicolas Bally Date: Wed, 21 Mar 2018 09:25:16 +0100 Subject: [PATCH] suite --- config/initializers/wicked.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/initializers/wicked.rb b/config/initializers/wicked.rb index ccd247a..ee9d88b 100644 --- a/config/initializers/wicked.rb +++ b/config/initializers/wicked.rb @@ -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 \ No newline at end of file