codeforamerica / pdfhook

A Python web application for converting PDF forms into PDF-filling APIs
https://pdfhook.herokuapp.com
MIT License
46 stars 24 forks source link

What does it take to deploy this on Heroku? #43

Closed bengolder closed 8 years ago

bengolder commented 8 years ago

This article outlines the steps of installing pdftk on Heroku, for integration into a Rails application. It also discusses a Ruby plugin that wraps pdftk.

bengolder commented 8 years ago

It is now functioning on Heroku! http://pdfhook.herokuapp.com/

Here are the necessary commands for setup:

heroku apps:create
echo 'python-3.5.1' > runtime.txt
heroku buildpacks:set heroku/python
heroku buildpacks:add --index 1 https://github.com/fxtentacle/heroku-pdftk-buildpack
heroku config:set CONFIG=src.settings.ProdConfig
heroku config:set LD_LIBRARY_PATH=/app/bin
heroku config:set PDFTK_PATH=/app/bin/pdftk
git push heroku master