Skip to content

Commit 803ef29

Browse files
author
Chris Wiechmann
committed
Defaults the PG port to 5432 if not given
1 parent 28a1e3f commit 803ef29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api-builder-plugin-dc-postgres/config/postgres.default.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ module.exports = {
1414
connectionPooling: true,
1515
connectionLimit: 10,
1616
host: process.env.POSTGRES_HOST,
17-
port: process.env.POSTGRES_PORT,
17+
port: parseInt(process.env.POSTGRES_PORT) || 5432,
1818
database: process.env.POSTGRES_DB,
1919
user: process.env.POSTGRES_USER,
2020
password: process.env.POSTGRES_PASSWORD,

0 commit comments

Comments
 (0)