fix: performance of startup sequence in supervisor controlled self-hosting setup
This commit is contained in:
parent
a1d60630a0
commit
5bbdc7e426
4 changed files with 7 additions and 17 deletions
|
@ -16,13 +16,9 @@
|
|||
"build": "tsc --build",
|
||||
"lint": "eslint . --ext .ts",
|
||||
"setup:env": "cp .env.sample .env",
|
||||
"wait-for:syncing-server": "docker/wait-for.sh localhost $SYNCING_SERVER_PORT",
|
||||
"wait-for:auth": "docker/wait-for.sh localhost $AUTH_SERVER_PORT",
|
||||
"wait-for:files": "docker/wait-for.sh localhost $FILES_SERVER_PORT",
|
||||
"wait-for:revisions": "docker/wait-for.sh localhost $REVISIONS_SERVER_PORT",
|
||||
"wait-for:services": "yarn wait-for:syncing-server && yarn wait-for:auth && yarn wait-for:files && yarn wait-for:revisions",
|
||||
"start": "yarn node dist/bin/server.js",
|
||||
"supervisor:start": "yarn wait-for:services && yarn node dist/bin/server.js",
|
||||
"supervisor:start": "yarn wait-for:revisions && yarn node dist/bin/server.js",
|
||||
"upgrade:snjs": "yarn ncu -u '@standardnotes/*'"
|
||||
},
|
||||
"dependencies": {
|
||||
|
|
|
@ -17,12 +17,10 @@
|
|||
"lint": "eslint . --ext .ts",
|
||||
"pretest": "yarn lint && yarn build",
|
||||
"test": "jest --coverage --config=./jest.config.js --maxWorkers=50%",
|
||||
"wait-for:db": "docker/wait-for.sh $DB_HOST $DB_PORT",
|
||||
"wait-for:cache": "docker/wait-for.sh $REDIS_HOST $REDIS_PORT",
|
||||
"wait-for:infra": "yarn wait-for:db && yarn wait-for:cache",
|
||||
"wait-for:syncing-server": "docker/wait-for.sh localhost $SYNCING_SERVER_PORT",
|
||||
"wait-for:auth": "docker/wait-for.sh localhost $AUTH_SERVER_PORT",
|
||||
"start": "yarn node dist/bin/server.js",
|
||||
"supervisor:start": "yarn wait-for:infra && yarn node dist/bin/server.js",
|
||||
"supervisor:start": "yarn wait-for:syncing-server && yarn node dist/bin/server.js",
|
||||
"worker": "yarn node dist/bin/worker.js",
|
||||
"supervisor:worker": "yarn wait-for:auth && yarn node dist/bin/worker.js",
|
||||
"cleanup": "yarn node dist/bin/cleanup.js",
|
||||
|
|
|
@ -20,12 +20,10 @@
|
|||
"lint": "eslint . --ext .ts",
|
||||
"pretest": "yarn lint && yarn build",
|
||||
"test": "jest --coverage --config=./jest.config.js --maxWorkers=50%",
|
||||
"wait-for:db": "docker/wait-for.sh $DB_HOST $DB_PORT",
|
||||
"wait-for:cache": "docker/wait-for.sh $REDIS_HOST $REDIS_PORT",
|
||||
"wait-for:infra": "yarn wait-for:db && yarn wait-for:cache",
|
||||
"wait-for:auth": "docker/wait-for.sh localhost $AUTH_SERVER_PORT",
|
||||
"wait-for:files": "docker/wait-for.sh localhost $FILES_SERVER_PORT",
|
||||
"start": "yarn node dist/bin/server.js",
|
||||
"supervisor:start": "yarn wait-for:infra && yarn node dist/bin/server.js",
|
||||
"supervisor:start": "yarn wait-for:auth && yarn node dist/bin/server.js",
|
||||
"worker": "yarn node dist/bin/worker.js",
|
||||
"supervisor:worker": "yarn wait-for:files && yarn node dist/bin/worker.js",
|
||||
"upgrade:snjs": "yarn ncu -u '@standardnotes/*'"
|
||||
|
|
|
@ -19,12 +19,10 @@
|
|||
"lint:fix": "eslint . --ext .ts --fix",
|
||||
"pretest": "yarn lint && yarn build",
|
||||
"test": "jest --coverage --config=./jest.config.js --maxWorkers=50%",
|
||||
"wait-for:db": "docker/wait-for.sh $DB_HOST $DB_PORT",
|
||||
"wait-for:cache": "docker/wait-for.sh $REDIS_HOST $REDIS_PORT",
|
||||
"wait-for:infra": "yarn wait-for:db && yarn wait-for:cache",
|
||||
"wait-for:files": "docker/wait-for.sh localhost $FILES_SERVER_PORT",
|
||||
"wait-for:revisions": "docker/wait-for.sh localhost $REVISIONS_SERVER_PORT",
|
||||
"start": "yarn node dist/bin/server.js",
|
||||
"supervisor:start": "yarn wait-for:infra && yarn node dist/bin/server.js",
|
||||
"supervisor:start": "yarn wait-for:files && yarn node dist/bin/server.js",
|
||||
"supervisor:worker": "yarn wait-for:revisions && yarn node dist/bin/worker.js",
|
||||
"worker": "yarn node dist/bin/worker.js"
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue