wkhtmltopdf-binary-edge icon indicating copy to clipboard operation
wkhtmltopdf-binary-edge copied to clipboard

Why it's recommended only for development and testing?

Open dmitry opened this issue 9 years ago • 6 comments

How to use it in production?

https://github.com/pallymore/wkhtmltopdf-binary-edge#recommended-for-development--testing-only

dmitry avatar Sep 16 '15 11:09 dmitry

because it's very large - it has binaries for 3 different operating systems.

To use wkthmltopdf in production

  • If you are running your production app on Heroku (or under any Ubuntu 14.04LTS environment), please try https://github.com/rposborne/wkhtmltopdf-heroku

OR

  • Install wkhtmltopdf in your production environment directly: http://wkhtmltopdf.org/

pallymore avatar Sep 16 '15 13:09 pallymore

Isn't it better to use the same binaries for production which was used for the testing. I've used wkhtmltopdf-binary for a year, and just found they are stopped to update. wkhtmltopdf-binary-edge looks like a nice alternative.

So the size of the gem package is big - and this one is the only issue to add it into a production system?

dmitry avatar Sep 16 '15 13:09 dmitry

yea that's the main issue. Ideally we should use the same binaries - but many people don't develop under the same OS as the production servers. what's your production environment? if you are using Ubuntu 64bit 14.04LTS (or running it w/ Vagrant) - please skip this gem and use the wkthmltopdf-heroku gem only.

pallymore avatar Sep 16 '15 13:09 pallymore

CI - ubuntu, my dev - ubuntu, production - ubuntu, other dev - mac os

dmitry avatar Sep 16 '15 13:09 dmitry

yea if your team has mac os users...it's recommended to use two gems.

group :development, :test do
  gem 'wkhtmltopdf-binary-edge'
end 

group :production do
  gem 'wkhtmltopdf-heroku'
end 

pallymore avatar Sep 16 '15 13:09 pallymore

That's what I thought too. Thanks for help! Might be good to add some notes about it in readme.

dmitry avatar Sep 16 '15 13:09 dmitry