diff --git a/README.md b/README.md index d0a85fe..387bf22 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ An example JSON request looks like "modified" : "2012-02-14 12:36:54" } ], - "root_resource_path" : "main.tex" + "rootResourcePath" : "main.tex" } } diff --git a/app/models/compile.rb b/app/models/compile.rb index aa12141..f546815 100644 --- a/app/models/compile.rb +++ b/app/models/compile.rb @@ -385,7 +385,7 @@ def convert_dvi_to_pdf # Note: Adding &> /dev/null to this command makes run_with_timeout return straight away before # command is complete, and I have no idea why. Solution: Don't add it. - dvipdf_command = "env TEXPICTS=#{compile_directory_rel_to_chroot} #{DVIPDF_COMMAND} \"#{input}\" \"#{output}\"" + dvipdf_command = "env TEXPICTS=#{compile_directory_rel_to_chroot} #{DVIPDF_COMMAND} -o \"#{output}\" \"#{input}\"" run_with_timeout(dvipdf_command, DVIPDF_TIMEOUT) end