File tree 2 files changed +4
-19
lines changed 2 files changed +4
-19
lines changed Original file line number Diff line number Diff line change @@ -329,10 +329,7 @@ Configuration for migration is at `./config/config.json`.
329
329
330
330
The following parameters can be set in the config file or via env variables:
331
331
332
- - ` username` : set via env ` DB_USERNAME` ; datebase username
333
- - ` password` : set via env ` DB_PASSWORD` ; datebase password
334
- - ` database` : set via env ` DB_NAME` ; datebase name
335
- - ` host` : set via env ` DB_HOST` ; datebase host name
332
+ - ` url` : set via env ` DATABASE_URL` ; datebase url
336
333
337
334
# # Testing
338
335
Original file line number Diff line number Diff line change 4
4
5
5
module . exports = {
6
6
development : {
7
- username : process . env . DB_USERNAME || 'postgres' ,
8
- password : process . env . DB_PASSWORD || 'postgres' ,
9
- database : process . env . DB_NAME || 'postgres' ,
10
- host : process . env . DB_HOST || '127.0.0.1' ,
11
- dialect : 'postgres'
7
+ url : process . env . DATABASE_URL || 'postgres://postgres:postgres@localhost:5432/postgres' ,
12
8
} ,
13
9
test : {
14
- username : process . env . DB_USERNAME || 'postgres' ,
15
- password : process . env . DB_PASSWORD || 'postgres' ,
16
- database : process . env . DB_NAME || 'postgres' ,
17
- host : process . env . DB_HOST || '127.0.0.1' ,
18
- dialect : 'postgres'
10
+ url : process . env . DATABASE_URL || 'postgres://postgres:postgres@localhost:5432/postgres' ,
19
11
} ,
20
12
production : {
21
- username : process . env . DB_USERNAME ,
22
- password : process . env . DB_PASSWORD ,
23
- database : process . env . DB_NAME ,
24
- host : process . env . DB_HOST ,
25
- dialect : 'postgres'
13
+ url : process . env . DATABASE_URL ,
26
14
}
27
15
}
You can’t perform that action at this time.
0 commit comments