From c458e4a233ebb26d293b73d159dd8be9f8efe028 Mon Sep 17 00:00:00 2001 From: realaravinth Date: Thu, 12 May 2022 19:57:06 +0530 Subject: [PATCH] fix: inject postgres URL while running migrations --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 7745649b..dd38f5eb 100644 --- a/Makefile +++ b/Makefile @@ -74,7 +74,8 @@ lint: ## Lint codebase cd $(OPENAPI)&& yarn test migrate: ## Run database migrations - cd db/db-migrations/ && cargo run + cd db/db-migrations/ && \ + DATABASE_URL=${POSTGRES_DATABASE_URL} cargo run release: frontend ## Build app with release optimizations cargo build --release