actually use postgres config
test / test (push) Failing after 12s Details

This commit is contained in:
Luca Bilke 2024-07-09 19:55:52 +02:00
parent 375ea8ff2d
commit d9864bd9ff
No known key found for this signature in database
GPG Key ID: C9E851809C1A5BDE
1 changed files with 5 additions and 0 deletions

View File

@ -1,6 +1,7 @@
import app/config.{type Context, Context}
import app/router
import gleam/erlang/process
import gleam/option.{Some}
import gleam/pgo
import ids/cuid
import mist
@ -14,6 +15,10 @@ fn with_context(continue: fn(Context) -> Nil) -> Nil {
pgo.Config(
..pgo.default_config(),
host: config.postgres_host,
user: config.postgres_user,
password: Some(config.postgres_password),
pool_size: config.postgres_pool_size,
port: config.postgres_port,
database: config.postgres_db,
pool_size: config.postgres_pool_size,
),