0

I want to build a Markdown to PDF converter running on Heroku using Pandoc and LaTeX that I can send markdown to and it will return a PDF. On my local machine this worked fine without any problem. I am using Pandoc 2.7.3 and pdfTeX 3.14159265-2.6-1.40.20 (TeX Live 2019).

Now I wanted to host this on heroku, but I just get errors for missing files when I run the pandoc command because the versions are old or don't match.

What is the easiest way to get this to run?

Heroku obviously has some limitations on the slug size (500mb), so a full tex install is not possible. It would need to be a smaller subset.

There are Buildpacks for pandoc and TeX Live, but espacially the TeX Live buildpacks seem to be outdated and is not compatible with the pandoc one if you try to run the latest version. The Apt package seems also to maintain only an older version. Is a docker image maybe the answer? https://devcenter.heroku.com/articles/container-registry-and-runtime

I am not necessarily searching for installation instructions, but rather in which way you would handle that. I am a web developer, not a dev ops, so i am really lost in this LaTeX install mess.

tn4foxxah
  • 287
  • 2
  • 11
  • 2
    yes, if Heroku can run docker images, use those: https://github.com/pandoc/dockerfiles – mb21 Nov 17 '19 at 08:41
  • Awesome, that's what I was searching for. Thank you! – tn4foxxah Nov 17 '19 at 20:35
  • docker definitely helps here :) but other question: what's not working in the LaTeX-buildpack? (I'm the one who built it, and we're still actively using it) It it doesn't work I of course want to fix it – Denis Cornehl Nov 20 '19 at 05:34

0 Answers0