Provide hosts and siblings container as environment settings and add npm run start script

wip acceptence tests run, but don't all pass

wip

removed npm-debug from git
This commit is contained in:
James Allen
2017-12-29 08:08:19 +00:00
committed by Henry Oswald
parent 6d42e18088
commit b64106b730
14 changed files with 3431 additions and 94 deletions

View File

@@ -132,6 +132,7 @@ resCacher =
if Settings.smokeTest
do runSmokeTest = ->
logger.log("running smoke tests")
console.log(__dirname, __filename)
smokeTest.run(require.resolve(__dirname + "/test/smoke/js/SmokeTests.js"))({}, resCacher)
setTimeout(runSmokeTest, 30 * 1000)
@@ -139,6 +140,10 @@ app.get "/health_check", (req, res)->
res.contentType(resCacher?.setContentType)
res.status(resCacher?.code).send(resCacher?.body)
app.get "/smoke_test_force", (req, res)->
smokeTest.run(require.resolve(__dirname + "/test/smoke/js/SmokeTests.js"))(req, res)
profiler = require "v8-profiler"
app.get "/profile", (req, res) ->
time = parseInt(req.query.time || "1000")