Skip to content

Commit

Permalink
added the AMD64 wkhtmltopdf library for heroku
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason Kotchoff committed May 14, 2012
1 parent 6eadf8c commit e877b6d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Binary file added bin/wkhtmltopdf-linux-amd64
Binary file not shown.
6 changes: 5 additions & 1 deletion lib/wkhtmltopdf-osx.rb
@@ -1,4 +1,8 @@
WKHTMLTOPDF_PATH = File.expand_path "../../bin/wkhtmltopdf-darwin", __FILE__
# use AMD64 library for heroku, Darwin library for OSX
on_heroku = !ENV.keys.select{|k| k.starts_with?("HEROKU")}.empty?
executable = on_heroku ? "wkhtmltopdf-linux-amd64" : "wkhtmltopdf-darwin"

WKHTMLTOPDF_PATH = File.expand_path "../../bin/#{executable}", __FILE__

begin
require 'pdfkit'
Expand Down

0 comments on commit e877b6d

Please sign in to comment.