-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathormconfig.ts
More file actions
28 lines (28 loc) · 886 Bytes
/
ormconfig.ts
File metadata and controls
28 lines (28 loc) · 886 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
export default [
{
name: "default",
type: "postgres",
port: Number(process.env.POSTGRES_PROD_PORT) || 5432,
host: process.env.POSTGRES_PROD_HOST || "localhost",
username: "postgres",
password: process.env.POSTGRES_PROD_PASS || "postgres",
database: process.env.POSTGRES_PROD_DB || "scraper",
logging: false,
synchronize: true,
entities: ["**/entities/**/*.js"], //TODO: maybe to include ts files?
dropSchema: false,
},
{
name: "test",
type: "postgres",
port: Number(process.env.POSTGRES_TEST_PORT) || 5432,
host: process.env.POSTGRES_TEST_HOST || "localhost",
username: "postgres",
password: process.env.POSTGRES_TEST_PASS || "postgres",
dropSchema: false,
database: process.env.POSTGRES_TEST_DB || "test",
logging: false,
synchronize: true,
entities: ["**/entities/**/*{.ts,.js}"],
},
];