Browse files

Merge pull request #141 from pyrat/master

Add info to README on how to solve the single thread deadlock issue.
  • Loading branch information...
2 parents c90cf40 + 77e30b0 commit d7690c4f58ca73c77ffe3c3d78e964d8d437909e @devn devn committed Aug 19, 2012
Showing with 8 additions and 0 deletions.
  1. +8 −0
@@ -107,6 +107,14 @@ PDFKit comes with a middleware that allows users to get a PDF view of any page o
around this issue you may want to run a server with multiple workers
like Passenger or try to embed your resources within your HTML to
avoid extra HTTP requests.
+ Example solution (rails / bundler), add unicorn to the development
+ group in your Gemfile `gem 'unicorn'` then run `bundle`. Next, add a
+ file `config/unicorn.conf` with
+ worker_processes 3
+ Then to run the app `unicorn_rails -c config/unicorn.conf` (from rails_root)
* **Resources aren't included in the PDF:** Images, CSS, or JavaScript
does not seem to be downloading correctly in the PDF. This is due

0 comments on commit d7690c4

Please sign in to comment.