Update backend env

pull/3/head
TZGyn 2 years ago
parent 828b6a5d32
commit 1f266b236e
Signed by: TZGyn
GPG Key ID: 122EAF77AE81FD4A

@ -1,3 +1,4 @@
host=0.0.0.0 host=0.0.0.0
user=postgres user=postgres
password=password password=password
port=5432

1
elysia/.gitignore vendored

@ -25,6 +25,7 @@ yarn-debug.log*
yarn-error.log* yarn-error.log*
# local env files # local env files
.env
.env.local .env.local
.env.development.local .env.development.local
.env.test.local .env.test.local

@ -10,4 +10,6 @@ RUN bun install
COPY . . COPY . .
EXPOSE 3000
ENTRYPOINT [ "bun", "run", "./src/index.ts" ] ENTRYPOINT [ "bun", "run", "./src/index.ts" ]

@ -8,7 +8,7 @@ const dialect = new PostgresDialect({
host: Bun.env.host ?? '0.0.0.0', host: Bun.env.host ?? '0.0.0.0',
user: Bun.env.user ?? 'postgres', user: Bun.env.user ?? 'postgres',
password: Bun.env.password ?? 'password', password: Bun.env.password ?? 'password',
port: 5432, port: parseInt(Bun.env.port ?? '') ?? 5432,
max: 10, max: 10,
}), }),
}) })

Loading…
Cancel
Save