Skip to content

Commit bc5e24f

Browse files
committed
Revert default pg config, provide config with the start command
1 parent 3e89ac8 commit bc5e24f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/ai-bot/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
},
2424
"scripts": {
2525
"lint": "eslint . --cache --ext ts",
26-
"start": "NODE_NO_WARNINGS=1 ts-node --transpileOnly main",
26+
"start": "NODE_NO_WARNINGS=1 PGDATABASE=boxel PGPORT=5435 ts-node --transpileOnly main",
2727
"test": "NODE_NO_WARNINGS=1 qunit --require ts-node/register/transpile-only tests/index.ts",
2828
"get-chat": "NODE_NO_WARNINGS=1 ts-node --transpileOnly scripts/get_chat.ts"
2929
},

packages/postgres/pg-config.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ import { type ClientConfig } from 'pg';
33
export function postgresConfig(defaultConfig: ClientConfig = {}) {
44
return Object.assign({}, defaultConfig, {
55
host: process.env.PGHOST || 'localhost',
6-
port: process.env.PGPORT || '5435',
6+
port: process.env.PGPORT || '5432',
77
user: process.env.PGUSER || 'postgres',
88
password: process.env.PGPASSWORD || undefined,
9-
database: process.env.PGDATABASE || 'boxel',
9+
database: process.env.PGDATABASE || 'postgres',
1010
});
1111
}

0 commit comments

Comments
 (0)