From d5f26aa30cae1658207f498c16798f5f10d099a6 Mon Sep 17 00:00:00 2001 From: Luke Chavers Date: Sun, 26 Jan 2025 12:54:11 -0500 Subject: [PATCH 1/2] Changed postgres instance --- libs/database/src/config/db.config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/database/src/config/db.config.ts b/libs/database/src/config/db.config.ts index 0f32187f..ab19baf2 100644 --- a/libs/database/src/config/db.config.ts +++ b/libs/database/src/config/db.config.ts @@ -4,7 +4,7 @@ export default () => { if (process.env.VCAP_SERVICES) { const vcap = JSON.parse(process.env.VCAP_SERVICES); - const rds = vcap['aws-rds'][1]; + const rds = vcap['aws-rds'][0]; return { database: { url: rds.credentials.uri, From 68845497748e419143c5e79393e7e5995b9efa38 Mon Sep 17 00:00:00 2001 From: Luke Chavers Date: Sun, 26 Jan 2025 12:58:00 -0500 Subject: [PATCH 2/2] Update manifest --- manifest.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/manifest.yml b/manifest.yml index 921d034e..239345e6 100644 --- a/manifest.yml +++ b/manifest.yml @@ -4,7 +4,7 @@ applications: disk_quota: ((api_disk)) timeout: 10 # seconds services: - - scanner-postgres + - scanner-postgres-02 - user-provided-api-key memory: ((api_memory)) instances: ((api_instances)) @@ -14,7 +14,7 @@ applications: - name: site-scanner-consumer disk_quota: ((consumer_disk)) services: - - scanner-postgres + - scanner-postgres-02 - scanner-message-queue memory: ((consumer_memory)) buildpacks: