From 2e190b1af96b0836684339bfb4353a17cf28f0b9 Mon Sep 17 00:00:00 2001 From: Thibaut Horel Date: Tue, 13 Jun 2017 21:51:56 -0400 Subject: Read db configuration from config.json --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 759e09f..5d95879 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -DB=sslmode=disable dbname=lastfm +DB=$(shell cat config.json | jq '.Database') all: kill build start @@ -22,4 +22,4 @@ down: goose -dir migrations postgres "$(DB)" down status: - goose -dir migrations postgres "$(DB)" status + goose -dir migrations postgres $(DB) status -- cgit v1.3