From faa81e757c3ad22ab5070d2286cebd8c3ef0e736 Mon Sep 17 00:00:00 2001 From: Demian Parkhomenko <95881717+DemianParkhomenko@users.noreply.github.com> Date: Fri, 15 Sep 2023 17:27:56 +0300 Subject: [PATCH] Add PG_CONNECTION_STRING --- src/config.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/config.js b/src/config.js index 7bc060c..20107a0 100644 --- a/src/config.js +++ b/src/config.js @@ -6,11 +6,9 @@ module.exports = { port: 8001, }, db: { - host: '127.0.0.1', - port: 5432, - database: 'example', - user: 'marcus', - password: 'marcus', + connectionString: + process.env.PG_CONNECTION_STRING || + 'postgresql://marcus:marcus@127.0.0.1:5432/example', }, transport: 'http', };