pallymore / wkhtmltopdf-binary-edge

this is forked from tolgap/wkhtmltopdf-binary .
MIT License
74 stars 33 forks source link

Why it's recommended only for development and testing? #6

Open dmitry opened 9 years ago

dmitry commented 9 years ago

How to use it in production?

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

pallymore commented 9 years ago

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

To use wkthmltopdf in production

OR

dmitry commented 9 years ago

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?

pallymore commented 9 years ago

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.

dmitry commented 9 years ago

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

pallymore commented 9 years ago

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 
dmitry commented 9 years ago

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