Getting PrinceXML Working on Heroku
PrinceXML will work on Heroku; here’s how:
- Download the princexml source (generic linux)
- Compile princexml and include it in your repo. Use whatever your RAILS_ROOT is as the installation directory when asked; this will create two new directories: bin and lib/prince in RAILS_ROOT
- Change the absolute paths in the prince schell script that prince creates in: bin/ to /app/… (this is the value of RAILS_ROOT on Heroku)
- Place your license.dat file in the RAILS_ROOT/lib/prince/license directory
- Commit your changes
- Push to Heroku