diff --git a/backend/.env.production b/backend/.env.production index 58694df4..d202a4d9 100644 --- a/backend/.env.production +++ b/backend/.env.production @@ -1,6 +1,7 @@ DWENGO_PORT=3000 DWENGO_DB_HOST=localhost DWENGO_DB_PORT=5431 +DWENGO_DB_NAME=postgres DWENGO_DB_USERNAME=postgres DWENGO_DB_PASSWORD=postgres DWENGO_DB_UPDATE=true diff --git a/backend/src/util/envvars.ts b/backend/src/util/envvars.ts index 6d10e296..d0448bc8 100644 --- a/backend/src/util/envvars.ts +++ b/backend/src/util/envvars.ts @@ -6,7 +6,7 @@ type EnvVar = { key: string; required?: boolean; defaultValue?: any }; export const EnvVars: { [key: string]: EnvVar } = { Port: { key: PREFIX + 'PORT', defaultValue: 3000 }, DbHost: { key: DB_PREFIX + 'HOST', required: true }, - DbPort: { key: DB_PREFIX + 'PORT', defaultValue: 5432 }, + DbPort: { key: DB_PREFIX + 'PORT', defaultValue: 5431 }, DbName: { key: DB_PREFIX + 'NAME', defaultValue: 'dwengo' }, DbUsername: { key: DB_PREFIX + 'USERNAME', required: true }, DbPassword: { key: DB_PREFIX + 'PASSWORD', required: true },