From 5bdcc7daff345e3c2ab7819cd42c3b31818fbe62 Mon Sep 17 00:00:00 2001 From: Paul Date: Fri, 26 Jul 2019 11:21:56 +0200 Subject: [PATCH] Use environment env for migration database --- internal/database/db.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/database/db.go b/internal/database/db.go index 9ae3ab5..7786e09 100644 --- a/internal/database/db.go +++ b/internal/database/db.go @@ -1,7 +1,7 @@ package database //go:generate sh -c "rm -f *.xo.go" -//go:generate xo postgres://paul:password@localhost/paul?sslmode=disable --escape-all --template-path templates/ --package database -o . +//go:generate xo $DATABASE_DSN --escape-all --template-path templates/ --package database -o . //go:generate sh -c "rm -f schemamigration.xo.go" //go:generate