diff --git a/docker-compose.yml b/docker-compose.yml index ba5563f..460ed4d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -8,7 +8,7 @@ services: image: sealious-test:latest build: context: . - dockerfile: test.dockerfile + dockerfile: test.Dockerfile volumes: - ./:/opt/sealious/ ports: diff --git a/jenkins.start.sh b/jenkins.start.sh index 9a3dd64..faca64c 100755 --- a/jenkins.start.sh +++ b/jenkins.start.sh @@ -23,5 +23,5 @@ docker-compose run --user="$UID"\ -p ${SEALIOUS_PORT}:${SEALIOUS_PORT} \ -d \ test \ - /bin/sh -c "node . 2>&1 | ansi2html > log.html" \ + /bin/sh -c "{ node . --color 2>&1; } | ./node_modules/.bin/ansi-html-stream > log.html" \ && echo "App started on $SEALIOUS_PORT" diff --git a/package-lock.json b/package-lock.json index 9d12810..d09da94 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5,7 +5,6 @@ "requires": true, "packages": { "": { - "name": "sealious-playground", "version": "1.0.1", "license": "ISC", "dependencies": { @@ -17,6 +16,7 @@ "stimulus": "^2.0.0" }, "devDependencies": { + "@sealcode/ansi-html-stream": "^1.0.0", "@types/koa__router": "^8.0.4", "babel-loader": "^8.2.2", "concurrently": "^5.3.0", @@ -421,6 +421,15 @@ "node": ">= 8" } }, + "node_modules/@sealcode/ansi-html-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@sealcode/ansi-html-stream/-/ansi-html-stream-1.0.0.tgz", + "integrity": "sha512-OrEbze90s1bpJFiblMiMRHsVLGK4aO3f3Nzzw9HnER28igdLKZ+OSf3bu3Y19LLmCjGrVX5do5SXcrYGPKQ7VQ==", + "dev": true, + "bin": { + "ansi-html-stream": "index.js" + } + }, "node_modules/@sindresorhus/is": { "version": "0.14.0", "license": "MIT", @@ -9379,6 +9388,12 @@ "fastq": "^1.6.0" } }, + "@sealcode/ansi-html-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@sealcode/ansi-html-stream/-/ansi-html-stream-1.0.0.tgz", + "integrity": "sha512-OrEbze90s1bpJFiblMiMRHsVLGK4aO3f3Nzzw9HnER28igdLKZ+OSf3bu3Y19LLmCjGrVX5do5SXcrYGPKQ7VQ==", + "dev": true + }, "@sindresorhus/is": { "version": "0.14.0" }, diff --git a/package.json b/package.json index aa07571..1e6474a 100644 --- a/package.json +++ b/package.json @@ -27,6 +27,7 @@ "stimulus": "^2.0.0" }, "devDependencies": { + "@sealcode/ansi-html-stream": "^1.0.1", "@types/koa__router": "^8.0.4", "babel-loader": "^8.2.2", "concurrently": "^5.3.0", diff --git a/src/back/app.ts b/src/back/app.ts index fb68ba8..86e1723 100644 --- a/src/back/app.ts +++ b/src/back/app.ts @@ -26,7 +26,7 @@ export default class TheApp extends App { from_name: "Sealious playground app", }, logger: { - level: "info", + level: "debug", }, "www-server": { port: PORT,