moved the build opts down

This commit is contained in:
Henry Oswald 2015-10-16 12:57:05 +01:00
parent 4f5669591a
commit 29c812cece

View file

@ -10,11 +10,11 @@ logger = require "logger-sharelatex"
module.exports =
check : (callback)->
getOpts = -> {url:url, timeout:3000}
doc_id = ObjectId()
project_id = ObjectId(settings.docstore.healthCheck.project_id)
url = "http://localhost:#{port}/project/#{project_id}/doc/#{doc_id}"
lines = ["smoke test - delete me", "#{crypto.randomBytes(32).toString("hex")}"]
getOpts = -> {url:url, timeout:3000}
logger.log lines:lines, url:url, doc_id:doc_id, project_id:project_id, "running health check"
jobs = [
(cb)->