push changes.

This commit is contained in:
Nawaz Dhandala 2021-06-22 10:32:09 +01:00
parent 87e00e2467
commit 551654c1a0
4 changed files with 10 additions and 9 deletions

View File

@ -62,7 +62,7 @@ services:
# There can only be one probe in developer docker compose.
probe:
ports:
- '3024:3024'
- '3008:3008'
- '9238:9229' # Debugging port.
build:
context: ./probe
@ -111,6 +111,7 @@ services:
- REDIS_HOST=redis
- REDIS_PORT=6379
- IS_SAAS_SERVICE=${IS_SAAS_SERVICE}
- NODE_ENV=development
depends_on:
- mongo
- redis

View File

@ -5,7 +5,7 @@ const bcrypt = require('bcrypt');
async function run() {
await updateVersion();
if (process.env['NODE_ENV'] === 'development') {
if (process.env['NODE_ENV'] === 'ci') {
await deleteDatabase();
await setupTestProbes();

View File

@ -32,20 +32,20 @@
"fix": "npm run fix-lint",
"build": "docker-compose build",
"build-dev": "docker-compose -f docker-compose.dev.yml build",
"prod": "docker-compose -d up",
"prod": "docker-compose up -d",
"dev": "npm run build-dev && npm run run-enterprise-dev",
"saas-dev": "npm run build-dev && export IS_SAAS_SERVICE=true && npm run dev",
"run-enterprise-dev": "docker-compose -d -f docker-compose.dev.yml up",
"run-enterprise-dev": "docker-compose -f docker-compose.dev.yml up -d",
"stop-dev": "docker-compose -f docker-compose.dev.yml down",
"staging-test": "cd tests && npm run-script staging-test",
"remove-all-containers": "docker stop $(docker ps -a -q) && docker rm $(docker ps -a -q) || echo 'No running containers'",
"debug-staging-test": "cd tests && npm run-script debug-staging-test",
"docker-enterprise-test": "npm run remove-all-containers && docker-compose build && docker-compose --env-file=./docker-compose-enterprise-ci.env up && cd tests && npm run-script enterprise-test",
"docker-saas-test": "npm run remove-all-containers && docker-compose build && docker-compose --env-file=./docker-compose-saas-ci.env up && cd tests && npm run-script saas-test",
"docker-enterprise": "export NODE_ENV=development && npm run remove-all-containers && docker-compose build && docker-compose --env-file=./docker-compose-enterprise-ci.env up",
"docker-saas": "export NODE_ENV=development && npm run remove-all-containers && docker-compose build && docker-compose --env-file=./docker-compose-saas-ci.env up",
"docker-saas-init-script": "export NODE_ENV=development && npm run remove-all-containers && docker-compose build init-script && docker compose --env-file=./docker-compose-saas-ci.env up init-script",
"docker-enterprise-init-script": "export NODE_ENV=development && npm run remove-all-containers && docker-compose build init-script && docker compose --env-file=./docker-compose-enterprise-ci.env up init-script"
"ci-docker-enterprise": "export NODE_ENV=ci && npm run remove-all-containers && docker-compose build && docker-compose --env-file=./docker-compose-enterprise-ci.env up",
"ci-docker-saas": "export NODE_ENV=ci && npm run remove-all-containers && docker-compose build && docker-compose --env-file=./docker-compose-saas-ci.env up",
"ci-docker-saas-init-script": "export NODE_ENV=ci && npm run remove-all-containers && docker-compose build init-script && docker compose --env-file=./docker-compose-saas-ci.env up init-script",
"ci-docker-enterprise-init-script": "export NODE_ENV=ci && npm run remove-all-containers && docker-compose build init-script && docker compose --env-file=./docker-compose-enterprise-ci.env up init-script"
},
"repository": {
"type": "git",

View File

@ -6,7 +6,7 @@
"scripts": {
"preinstall": "npx npm-force-resolutions || echo 'No package-lock.json file. Skipping force resolutions'",
"start": "node --max-http-header-size=80000 index.js",
"dev": "nodemon --max-http-header-size=80000 index.js",
"dev": "nodemon --inspect=0.0.0.0 --max-http-header-size=80000 index.js",
"test": "echo 'no tests'",
"audit": "npm audit --audit-level=low",
"dep-check": "depcheck ./ --skip-missing=true"