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