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', };