Skip to content

Instantly share code, notes, and snippets.

@brand-it
Last active December 11, 2018 16:51
Show Gist options
  • Save brand-it/88d3afecb57bf4c017bbe061c49331aa to your computer and use it in GitHub Desktop.
Save brand-it/88d3afecb57bf4c017bbe061c49331aa to your computer and use it in GitHub Desktop.
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