Last active
December 11, 2018 16:51
-
-
Save brand-it/88d3afecb57bf4c017bbe061c49331aa to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
temp = Tempfile.new(['document_content', '.html']) | |
temp.write(options[:document_content]) | |
temp.close | |
prince_cmd = "docker run --network host -v /var/folders:/var/folders -v #{logfile}:#{logfile} --rm conga/prince prince -v --javascript --log=#{logfile} --baseurl=http://host.docker.internal:3000 #{option_str} #{temp.path} - -o #{outfile.path}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment