Skip to content

Commit

Permalink
Added instructions on how to setup heroku using buildpacks instead of…
Browse files Browse the repository at this point in the history
… binaries.
  • Loading branch information
jbhatab committed Mar 11, 2017
1 parent 444a231 commit 08f0ec5
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,19 @@ config :pdf_generator,
- `command_prefix`: prefix wkhtmltopdf with some command (e.g. `xvfb-run`, `sudo` ..)
- `delete_temporary`: immediately remove temp files after generation

## Heroku Setup

If you are using this with heroku, you can use buildpacks instead of binaries to load in pdftk and wkhtmltopdf. Here's an example buildpack file.

```
https://github.com/fxtentacle/heroku-pdftk-buildpack.git
https://github.com/dscout/wkhtmltopdf-buildpack.git
https://github.com/HashNuke/heroku-buildpack-elixir
https://github.com/gjaldon/phoenix-static-buildpack
```

note: this has elixir and phoenix buildpacks in here as well to show that they have to be placed after the wkhtmltopdf and pdftk buildpacks. It won't work if they come after elixir/phoenix buildpacks.

# Documentation

For more info, read the [docs on hex](http://hexdocs.pm/pdf_generator) or issue
Expand Down

0 comments on commit 08f0ec5

Please sign in to comment.