我完成我的應用程序,它完美地工作在開發模式,但上傳到Heroku的時候,這是行不通的一個PDF報告實施工作,並且我收到以下錯誤:Wicked_pdf不與Heroku的
2011-10-24T03:28:02+00:00 app[web.1]: RuntimeError (Failed to execute:
2011-10-24T03:28:02+00:00 app[web.1]: /app/.bundle/gems/ruby/1.9.1/bin/wkhtmltopdf --header-html 'file:///app/tmp/wicked_header_pdf_1_0.html' --footer-html 'file:///app/tmp/wicked_footer_pdf_1_0.html' --orientation 'landscape' --page-size 'A4' --encoding 'UTF-8' -q - -
2011-10-24T03:28:02+00:00 app[web.1]: Error: PDF could not be generated!):
2011-10-24T03:28:02+00:00 app[web.1]: app/controllers/gliders_controller.rb:244:in `block (2 levels) in report'
2011-10-24T03:28:02+00:00 app[web.1]: app/controllers/gliders_controller.rb:228:in `report'
我嘗試添加一個初始化程序,並手動將wkhtmltopdf bin文件上傳到heroku,然後按照github repository中的示例進行操作,但仍然無法使其工作。
我似乎無法掌握Heroku無法正常工作的確切原因,任何人都可以幫我一把嗎?提前致謝。
我記錄了徹底的答案,這在這裏:http://stackoverflow.com/a/16577677/307308 – scarver2