0
我在我的應用程序中整合了邪惡的pdf。對本地IT工作的罰款,但在服務器上就給人一種errro邪惡的Pdf不在服務器上生成。它在本地很好
Completed 500 Internal Server Error in 6186ms (ActiveRecord: 27.1ms)
RuntimeError (Failed to execute:
["/usr/local/bundle/bin/wkhtmltopdf", "-q", "file:////tmp/wicked_pdf20170316-5-f2h6uc.html", "/tmp/wicked_pdf_generated_file20170316-5-1qnsals.pdf"]
Error: PDF could not be generated!
上配置的Xserver可以檢查''wkhtmltopdf安裝在服務器上? – harshs08
@ harshs08是它的安裝 –
並且安裝的二進制文件路徑與'/ usr/local/bundle/bin/wkhtmltopdf'相同 – harshs08