diff --git a/app/coffee/CompileController.coffee b/app/coffee/CompileController.coffee index 1d90405..5a6a75a 100644 --- a/app/coffee/CompileController.coffee +++ b/app/coffee/CompileController.coffee @@ -39,6 +39,8 @@ module.exports = CompileController = for file in outputFiles if file.path?.match(/output\.pdf$/) status = "success" + if file.path?.match(/output\.html$/) + status = "success" # log an error if any core files are found for file in outputFiles if file.path is "core" @@ -48,7 +50,7 @@ module.exports = CompileController = res.status(code or 200).send { compile: status: status - error: error?.message or error + error: error?.message or error outputFiles: outputFiles.map (file) -> url: "#{Settings.apis.clsi.url}/project/#{request.project_id}" + diff --git a/app/coffee/LatexRunner.coffee b/app/coffee/LatexRunner.coffee index 6600843..55f2c4a 100644 --- a/app/coffee/LatexRunner.coffee +++ b/app/coffee/LatexRunner.coffee @@ -36,7 +36,7 @@ module.exports = LatexRunner = console.log(mainFile) console.log(image) image = "ivotron/pandoc" - command = ["-o", "$COMPILE_DIR/output.pdf", "/compile/word.docx"] + command = ["-o", "$COMPILE_DIR/output.html", "/compile/" + mainFile] id = "#{project_id}" # record running project under this id