Copy / install wkhtmltoimage on heroku from heroku bash

I use wkhtmltoimagefor my application. While deploying it to heroku shows that an wkhtmltoimageexecutable file not found in /usr/local/binmeans that I need to install or copy the executable file to the heroku local / bin folder, how can I install or copy from the bash hero to the / usr / local / bin folder

+4
source share
1 answer

Heroku does not play well with the IMGKit stone, and in order to make the screenshots work, you need to download the compiled version of IMGKit.

https://wkhtmltopdf.googlecode.com/files/wkhtmltoimage-0.10.0_rc2-static-amd64.tar.bz2

bin. IMGKit, .

IMGKit.configure do |config|
  config.wkhtmltoimage = Rails.root.join('bin', 'wkhtmltoimage-amd64').to_s if ENV['RACK_ENV'] == 'production'
end
+3

Source: https://habr.com/ru/post/1540943/


All Articles