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.
This commit is contained in:
parent
fe80ba7be2
commit
c0a43351e1
@ -178,9 +178,9 @@ async function fetchAndGenerate() {
|
||||
const backendDirectory = (() => {
|
||||
switch (nodeEnv) {
|
||||
case 'prod':
|
||||
return path.resolve('/app/backend/app'); // Production path
|
||||
return path.resolve('/app/backend'); // Production path
|
||||
case 'test':
|
||||
return path.resolve('/app/backend/app'); // Test path
|
||||
return path.resolve('/app/backend'); // Test path
|
||||
case 'dev':
|
||||
default:
|
||||
return path.resolve('/app/backend'); // Development path
|
||||
|
Loading…
x
Reference in New Issue
Block a user