按照關於https://github.com/jordan-brough/heroku-pdf的指導,我設法讓wicked_pdf在本地工作並按預期創建PDF。 然而,一旦我推到Heroku的,經過一段時間的應用程序崩潰每次我打電話的PDF無法讓wicked_pdf在heroku上工作? (但它在本地工作)
日誌給了我這樣的:
2011-05-19T06:36:56+00:00 app[web.1]: Started GET "/authors/cash_payment_receipt/4dd4aff0a2d5a5000100000c.pdf" for XXX.XXX.XXX.XXX at Wed May 18 23:36:56 -0700 2011
2011-05-19T06:36:56+00:00 heroku[router]: Error H13 (Connection closed without response) -> GET xxx.xxxx.com/authors/cash_payment_receipt/4dd4aff0a2d5a5000100000c.pdf dyno=web.1 queue=0 wait=0ms service=0ms bytes=0
2011-05-19T06:36:56+00:00 app[web.1]: !! Unexpected error while processing request: PDF could not be generated!
2011-05-19T06:36:56+00:00 app[web.1]: /app/.bundle/gems/ruby/1.8/gems/wkhtmltopdf-0.1.2/bin/wkhtmltopdf_linux_386: error while loading shared libraries: libfontconfig.so.1: cannot open shared object file: No such file or directory
我加入了wkhtmltopdf斌到我的軌道根/ bin目錄,檢查了權利,並沒有問題。我首先嚐試了0.10rc2並將其移回到0.9.9,但它們都給出了相同的結果。
我無法找到谷歌任何有關我的錯誤。我沒有看到我做錯了什麼。
的ENV是: - 導軌3.0.7 - 紅寶石1.8.7
感謝,
啤酒
我證明這個問題的答案很詳細這裏http://stackoverflow.com/a/16577677/307308 – scarver2 2013-05-16 02:26:53