File tree Expand file tree Collapse file tree 2 files changed +2
-9
lines changed Expand file tree Collapse file tree 2 files changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -12,17 +12,10 @@ services:
12
12
env :
13
13
global :
14
14
- NODE_ENV=test
15
- - DB_USER_test=teamwork_user
16
- - DB_PASSWORD_test=teamwork_password
17
- - DB_HOST_test=localhost
18
- - DB_PORT_test=5432
19
- - DB_DATABASE_test=teamwork_api_test
15
+ - DATABASE_URL_TEST=postgres://utpwsugatpqjzn:03120a462667a671da3979385da1b5650ab8082d1319630013ec707eb7338ca5@ec2-54-225-173-42.compute-1.amazonaws.com:5432/ddo2ssbhau003c
20
16
- SECRET=teamwork-api-secret-key
21
17
22
18
before_script :
23
- - psql -c 'create database teamwork_api_test;' -U postgres
24
- - psql -c "CREATE USER teamwork_user WITH PASSWORD 'teamwork_password';" -U postgres
25
- - psql -U teamwork_user -d teamwork_api_test -a -f ./init.sql
26
19
- npm run build
27
20
script :
28
21
- npm test
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ if (isProduction) {
12
12
} else if ( isDevelopment ) {
13
13
conn = `postgresql://${ process . env . DB_USER } :${ process . env . DB_PASSWORD } @${ process . env . DB_HOST } :${ process . env . DB_PORT } /${ process . env . DB_DATABASE } ` ;
14
14
} else {
15
- conn = `postgresql:// ${ process . env . DB_USER_TEST } : ${ process . env . DB_PASSWORD_TEST } @ ${ process . env . DB_HOST } : ${ process . env . DB_PORT } / ${ process . env . DB_DATABASE_TEST } ` ;
15
+ conn = process . env . DATABASE_URL_TEST ;
16
16
}
17
17
18
18
const pool = new Pool ( {
You can’t perform that action at this time.
0 commit comments