From 01cba69400a153c981356941fc4c87f5ed6ed812 Mon Sep 17 00:00:00 2001 From: Michael Brooks Date: Tue, 14 May 2013 22:57:18 -0700 Subject: [PATCH 1/2] update dvipdfmx command format --- app/models/compile.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From 4847254487bb1f10d7dbaef5256c38f25e7e6398 Mon Sep 17 00:00:00 2001 From: Michael Brooks Date: Wed, 15 May 2013 00:35:40 -0700 Subject: [PATCH 2/2] json parser expects rootResourcePath --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" } }