Skip to content

Commit

Permalink
remove need for postgres password in dev/test envs
Browse files Browse the repository at this point in the history
  • Loading branch information
habdelra committed Apr 11, 2024
1 parent 5908089 commit 172c248
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/realm-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"yargs": "^17.5.1"
},
"scripts": {
"test": "NODE_NO_WARNINGS=1 PGPORT=5435 PGPASSWORD=postgres qunit --require ts-node/register/transpile-only tests/index.ts",
"test": "NODE_NO_WARNINGS=1 PGPORT=5435 qunit --require ts-node/register/transpile-only tests/index.ts",
"test:dom": "cd ../matrix && pnpm register-test-user && cd ../realm-server && start-server-and-test 'pnpm run wait' 'http://127.0.0.1:4205' 'testem ci -f ./testem.js'",
"start:test-container": "http-server ./dom-tests -p 4205 --silent",
"start:matrix": "cd ../matrix && pnpm assert-synapse-running",
Expand Down
1 change: 0 additions & 1 deletion packages/realm-server/scripts/start-development.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ NODE_ENV=development \
LOG_LEVELS='*=info' \
REALM_SECRET_SEED="shhh! it's a secret" \
PGPORT="5435" \
PGPASSWORD="postgres" \
ts-node \
--transpileOnly main \
--port=4201 \
Expand Down
2 changes: 1 addition & 1 deletion packages/realm-server/scripts/start-pg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
if [ -z "$(docker ps -f name=boxel-pg --all --format '{{.Names}}')" ]; then
# running postgres on port 5435 so it doesn't collide with native postgres
# that may be running on your system
docker run --name boxel-pg -e POSTGRES_PASSWORD=postgres -p 5435:5432 -d postgres >/dev/null
docker run --name boxel-pg -e POSTGRES_HOST_AUTH_METHOD=trust -p 5435:5432 -d postgres >/dev/null
else
docker start boxel-pg >/dev/null
fi
1 change: 0 additions & 1 deletion packages/realm-server/scripts/start-test-realms.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ NODE_ENV=test \
NODE_NO_WARNINGS=1 \
REALM_SECRET_SEED="shhh! it's a secret" \
PGPORT="5435" \
PGPASSWORD="postgres" \
ts-node \
--transpileOnly main \
--port=4202 \
Expand Down

0 comments on commit 172c248

Please sign in to comment.