send html

This commit is contained in:
hugh-obrien
2018-07-09 14:37:54 +01:00
parent a1f9305047
commit bfe31098cb
2 changed files with 4 additions and 2 deletions

View File

@@ -39,6 +39,8 @@ module.exports = CompileController =
for file in outputFiles for file in outputFiles
if file.path?.match(/output\.pdf$/) if file.path?.match(/output\.pdf$/)
status = "success" status = "success"
if file.path?.match(/output\.html$/)
status = "success"
# log an error if any core files are found # log an error if any core files are found
for file in outputFiles for file in outputFiles
if file.path is "core" if file.path is "core"

View File

@@ -36,7 +36,7 @@ module.exports = LatexRunner =
console.log(mainFile) console.log(mainFile)
console.log(image) console.log(image)
image = "ivotron/pandoc" 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 id = "#{project_id}" # record running project under this id