From fe80ba7be23ea1ec8eeefa161e4e3b4278bf3da9 Mon Sep 17 00:00:00 2001 From: GotthardG <51994228+GotthardG@users.noreply.github.com> Date: Wed, 9 Apr 2025 23:32:46 +0200 Subject: [PATCH] Refactor Docker setup and migrate to PostgreSQL Streamlined Dockerfiles with clearer ENV variables and build args. Switched backend database from MySQL to PostgreSQL, updated configurations accordingly, and added robust Docker Compose services for better orchestration, including health checks and persistent storage. --- frontend/fetch-openapi.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/fetch-openapi.js b/frontend/fetch-openapi.js index 98ff980..5a2ea8a 100644 --- a/frontend/fetch-openapi.js +++ b/frontend/fetch-openapi.js @@ -178,9 +178,9 @@ async function fetchAndGenerate() { const backendDirectory = (() => { switch (nodeEnv) { case 'prod': - return path.resolve('/home/jungfrau/aaredb/backend/app'); // Production path + return path.resolve('/app/backend/app'); // Production path case 'test': - return path.resolve('/home/jungfrau/aaredb/backend/app'); // Test path + return path.resolve('/app/backend/app'); // Test path case 'dev': default: return path.resolve('/app/backend'); // Development path