Switch to using file:// for Chrome render.
All checks were successful
continuous-integration/drone/push Build is passing

I don't think the web server is started in this mode
This commit is contained in:
Danila Fedorin 2020-03-28 23:05:36 -07:00
parent 0347edf338
commit d2e5369b7b

View File

@ -10,8 +10,7 @@ steps:
- name: build-resume
image: pink33n/html-to-pdf
commands:
- cp -r resume.html css /workspace
- chrome-headless-render-pdf --chrome-binary=/usr/local/bin/chrome-wrapper --url http://localhost/resume.html --pdf /resume-output/Resume-Danila-Fedorin.pdf
- chrome-headless-render-pdf --chrome-binary=/usr/local/bin/chrome-wrapper --url file://$(pwd)/resume.html --pdf /resume-output/Resume-Danila-Fedorin.pdf
volumes:
- name: resume-output
path: /resume-output