Skip to content

Latest commit

 

History

History
58 lines (42 loc) · 1.68 KB

README.md

File metadata and controls

58 lines (42 loc) · 1.68 KB

wkhtmltopdf Buildpack

This is a buildpack for bundling a compatible wkhtmltopdf binary with your environment.

Versions

  • Buildpack: 0.3
  • wkhtmltopdf: 0.12.6-1 by default

Usage

Add this buildpack to your Scalingo application to install the wkhtmltopdf and wkhtmltoimage binaries, and the corresponding library libwkhtmltox. You need to setup your application to use a multi-buildpack environment. Then, your application need both the wkhtmltopdf buildpack and the one for the technology you use in your application. Here is an example using the Ruby buildpack:

$ scalingo env-set 'BUILDPACK_URL=https://github.com/Scalingo/multi-buildpack.git'
$ echo 'https://github.com/Scalingo/wkhtmltopdf-buildpack' >> .buildpacks
$ echo 'https://github.com/Scalingo/ruby-buildpack' >> .buildpacks
$ git add .buildpacks
$ git commit -m 'Add multi-buildpack'

Other versiosn

If you want to use a wkhtmltopdf version other than 0.12.6-1, set WKHTMLTOPDF_VERSION:

scalingo env-set WKHTMLTOPDF_VERSION="0.12.3"

As the distribution method for wkhtmltopdf has changed, you must also use a specific version of the buildpack. So modify your .buildpacks to reference the buildpack with a specific tag:

https://github.com/Scalingo/wkhtmltopdf-buildpack#v0.12.3

And commit this file.

Troubleshooting

If you run into issues when trying to deploy with this buildpack, make sure your app is running on the stack scalingo-18, scalingo-20 or scalingo-22. You can check this with:

$ scalingo apps-info