Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install in gigalixir #33

Open
shotleybuilder opened this issue Jun 22, 2020 · 1 comment
Open

Install in gigalixir #33

shotleybuilder opened this issue Jun 22, 2020 · 1 comment

Comments

@shotleybuilder
Copy link

shotleybuilder commented Jun 22, 2020

Hi

I'm trying to get the library to execute in Gigalixir. I'm not following this line in the ReadMe:
"Do not attempt to use this env var to set the path in production. Instead, use the application configuration, above"

The error I receive is invalid_exec_path. I've naively included this in prod.exs:

config :puppeteer_pdf, exec_path: "/usr/local/bin/puppeteer-pdf"

Rapidly exhausting my competence on these matters :) I had a look at System.cmd which states

"command is expected to be an executable available in PATH unless an absolute path is given." I'm sure I'm not meeting either of these conditions.

Help appreciated ...

Update
Just noticed this for a similar package that relies on chrome
gutschilla/elixir-pdf-generator#56

@speeddragon
Copy link
Contributor

Hi, sorry for just noticing your message now.

Normally you should install puppeteer-pdf globally, and it will use puppeteer-pdf as the full path. In some cases where you don't install it globally, you need to provide the full path using that configuration.

elixir-pdf-generator initially didn't support puppeteer, that was the reason for me to create this library. You can check more information here. Currently I didn't test it again, but it should work with puppeteer and this module should cease to exist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants