diff --git a/.circleci/config.yml b/.circleci/config.yml index 012df4ddb..f333861ad 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -16,7 +16,9 @@ jobs: - node_modules unit-tests: docker: - - image: circleci/node:8 + - image: circleci/node:8 + environment: + TZ: "Asia/Jerusalem" steps: - checkout - setup_remote_docker: @@ -31,8 +33,6 @@ jobs: integration-tests: docker: - image: circleci/node:8 - environment: - TZ: "Asia/Jerusalem" - image: circleci/cassandra:3.10 environment: MAX_HEAP_SIZE: 2048m diff --git a/src/app.js b/src/app.js index b6eeee45b..1d5a2df31 100644 --- a/src/app.js +++ b/src/app.js @@ -31,6 +31,11 @@ module.exports = () => { res.header('Access-Control-Allow-Methods', '*'); next(); }); + // all root request are suppose to be the ui , so we put the route before the audit to avoid audit. + app.use(express.static('./ui/dist')); + app.use('/predator', function (req, res, next) { + res.sendFile(path.resolve('ui/dist/index.html')); + }); app.use(bodyParser.json());