fix: inject postgres URL while running migrations

This commit is contained in:
realaravinth 2022-05-12 19:57:06 +05:30
parent b6445000fe
commit c458e4a233
No known key found for this signature in database
GPG key ID: AD9F0F08E855ED88

View file

@ -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