wkhtmltopdf-binary-edge
wkhtmltopdf-binary-edge copied to clipboard
Why it's recommended only for development and testing?
How to use it in production?
https://github.com/pallymore/wkhtmltopdf-binary-edge#recommended-for-development--testing-only
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/
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?
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.
CI - ubuntu, my dev - ubuntu, production - ubuntu, other dev - mac os
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
That's what I thought too. Thanks for help! Might be good to add some notes about it in readme.