From fc2bf4cf04a38cfb08d026e97431ee5fd8141809 Mon Sep 17 00:00:00 2001 From: Blaine Jester Date: Mon, 19 Sep 2022 08:54:04 -0700 Subject: [PATCH] Update to use pgpass file since password env var doesn't work anymore --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index a2b0eadbcd..fd5a4e3b98 100644 --- a/Makefile +++ b/Makefile @@ -126,9 +126,9 @@ hascaptions: export COMPOSE_PROJECT_NAME=studio_$(shell git rev-parse --abbrev-ref HEAD) -purge-postgres: - -PGPASSWORD=kolibri dropdb -U learningequality "kolibri-studio" --port 5432 -h localhost - PGPASSWORD=kolibri createdb -U learningequality "kolibri-studio" --port 5432 -h localhost +purge-postgres: .docker/pgpass + -PGPASSFILE=.docker/pgpass dropdb -U learningequality "kolibri-studio" --port 5432 -h localhost + PGPASSFILE=.docker/pgpass createdb -U learningequality "kolibri-studio" --port 5432 -h localhost destroy-and-recreate-database: purge-postgres setup