I wonder if anyone has successfully deployed puppeteer-pdf to Gigalixir? I’m unable to understand how to make headless chrome available on the server.
The error I keep getting is
:invalid_exec_path. I had a look at the
elixir-pdf-generator and it looks like it’s a known trip hazard. But the discussions / solutions there didn’t help me
I’ve progressed(?) to deploying the https://github.com/minted/heroku-buildpack-chrome-headless buildpack. This worked, to my great surprise (as in the deploy didn’t fall over), unlike https://github.com/heroku/heroku-buildpack-google-chrome, but I’m still facing the same error.
I feel sure someone has cracked this particular nut. I would really appreciate the recipe because I’ve come to a dead end and will have to use a different library for pdf conversion that doesn’t use chrome.
Thanks in advance,
remote: -----> Warning: Multiple default buildpacks reported the ability to handle this app. The first buildpack in the list below will be used.
remote: Detected buildpacks: /tmp/buildpacks/000_buildpack-multi elixir
remote: -----> Multipack app detected
remote: =====> Downloading Buildpack: https://github.com/minted/heroku-buildpack-chrome-headless
remote: =====> Detected Framework: Headless Chrome
remote: -----> Fetching Chrome binaries at https://s3.amazonaws.com/minted-wedding-websites-deployment/chrome-headless
remote: -----> Moving Chrome binaries to /tmp/build/vendor/chrome/bin
remote: -----> exporting PATH