-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathormconfig.js
53 lines (53 loc) · 1000 Bytes
/
ormconfig.js
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
module.exports = [
{
name: "localhost",
driver: {
type: "postgres",
host: "localhost",
port: 5432,
username: "repairlink",
password: "password",
database: "repairlink"
},
autoSchemaSync: true,
entities: [
"dist/entity/*.js"
],
subscribers: [
"dist/subscriber/*.js,"
],
migrations: [
"dist/migrations/*.js"
],
cli: {
entitiesDir: "src/entity",
migrationsDir: "src/migrations",
subscribersDir: "src/subscriber"
}
},
{
name: "prod",
driver: {
type: "postgres",
url: process.env.DATABASE_URL,
extra: {
ssl: true
}
},
autoSchemaSync: true,
entities: [
"dist/entity/*.js"
],
subscribers: [
"dist/subscriber/*.js,"
],
migrations: [
"src/migrations/*.js"
],
cli: {
entitiesDir: "src/entity",
migrationsDir: "src/migrations",
subscribersDir: "src/subscriber"
}
}
];