From 22f1469e7b925ec20eaa1f7e3a2333f471938587 Mon Sep 17 00:00:00 2001 From: Jun-te Kim Date: Sat, 13 Dec 2025 22:31:57 +0000 Subject: [PATCH] env variables --- db/atlas/atlas.hcl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/db/atlas/atlas.hcl b/db/atlas/atlas.hcl index 0cfc5a6..d2d7dfe 100644 --- a/db/atlas/atlas.hcl +++ b/db/atlas/atlas.hcl @@ -1,5 +1,5 @@ env "stripe_invoice_dev" { - url = "postgres://${env("POSTGRES_USER")}:${env("POSTGRES_PASSWORD")}@postgres.default.svc.cluster.local:5432/stripe_invoice?sslmode=disable" + url = "postgres://${getenv("POSTGRES_USER")}:${getenv("POSTGRES_PASSWORD")}@postgres.default.svc.cluster.local:5432/stripe_invoice?sslmode=disable" migration { dir = "file://./db/atlas/stripe_invoice/migrations" @@ -7,7 +7,7 @@ env "stripe_invoice_dev" { } env "stripe_invoice_prod" { - url = "postgres://${env("POSTGRES_USER")}:${env("POSTGRES_PASSWORD")}@postgres.default.svc.cluster.local:5432/stripe_invoice_prod?sslmode=disable" + url = "postgres://${getenv("POSTGRES_USER")}:${getenv("POSTGRES_PASSWORD")}@postgres.default.svc.cluster.local:5432/stripe_invoice_prod?sslmode=disable" migration { dir = "file://./db/atlas/stripe_invoice/migrations"