Skip to content

Commit

Permalink
Merge pull request gutschilla#21 from jbhatab/master
Browse files Browse the repository at this point in the history
Added instructions on how to setup using heroku
  • Loading branch information
gutschilla authored May 3, 2017
2 parents 444a231 + 08f0ec5 commit 0dbab16
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 0dbab16

Please sign in to comment.