Skip to content

Commit 68bc3f8

Browse files
Xavier MetichecchiaXavier Metichecchia
authored andcommitted
add port and ssl to postgres connection knexfile
1 parent aeeb6de commit 68bc3f8

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

knexfile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ module.exports = {
1111
host: process.env.POSTGRES_HOST,
1212
user: process.env.POSTGRES_USER,
1313
password: process.env.POSTGRES_PASSWORD,
14-
database: process.env.POSTGRES_DATABASE
14+
database: process.env.POSTGRES_DATABASE,
1515
},
1616
pool: {
1717
min: 2,

knexfile.js.cloudgov

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ module.exports = {
1515
user : VCAP_SERVICES_JSON["aws-rds"][0]["credentials"]["username"],
1616
password : VCAP_SERVICES_JSON["aws-rds"][0]["credentials"]["password"],
1717
database : VCAP_SERVICES_JSON["aws-rds"][0]["credentials"]["db_name"],
18-
18+
port: 5432
19+
ssl: true
1920
},
2021
pool: {
2122
min: 2,

0 commit comments

Comments
 (0)